wp-config.php file, located in WordPress root folder, and add or replace
In this way, WordPress will print the logs on the screen. This may be very annoying, so you would like to redirect all logs in a file.
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true ); define('WP_DEBUG_DISPLAY', false ); ini_set('display_errors', 0 ); // By default, WordPress write the logs in /wp-content/log/debug.log // comment out the line below to change path and log filename //ini_set( 'error_log', '/path/site.com/wp-content/logs/debug.log' );
As usual, please don’t hesitate to leave any questions or comments in the feed below, and I’ll aim to respond to each of them.