Created
February 5, 2015 17:47
-
-
Save sidharrell/5fe35bf67e10bb118ce8 to your computer and use it in GitHub Desktop.
wp-debug to file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This will log all errors notices and warnings to a file called debug.log in | |
* wp-content only when WP_DEBUG is true. if Apache does not have write permission, | |
* you may need to create the file first and set the appropriate permissions (i.e. use 666). | |
*/ | |
define( 'WP_DEBUG', true ); // Or false | |
if ( WP_DEBUG ) { | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
@ini_set( 'display_errors', 0 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment