Skip to content

Instantly share code, notes, and snippets.

@thenbrent
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thenbrent/26b4ef23f42160863755 to your computer and use it in GitHub Desktop.
Save thenbrent/26b4ef23f42160863755 to your computer and use it in GitHub Desktop.
Set PHP error log from `wp-config.php`
<?php
if ( ! defined( 'WP_DEBUG' ) ) {
define('WP_DEBUG', true);
}
if ( ! defined( 'WP_DEBUG_DISPLAY' ) ) {
define('WP_DEBUG_DISPLAY', false);
}
if ( ! defined( 'WP_DEBUG_LOG' ) ) {
define('WP_DEBUG_LOG', true);
ini_set( 'error_log', dirname( __FILE__ ) . '/php_error_log.txt' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment