Block Access to WordPress’ debug.log
Adding the two constants WP_DEBUG and WP_DEBUG_LOG should be enough to allow WordPress to start writing to the debug.log file. By default this file is located in the wp-content directory which is great since it's usually a writable directory,