junrillg
11/17/2014 - 6:20 AM

WP: Enable Logging Errors

WP: Enable Logging Errors

//You can also enable logging directly from your wp-config file. To enable logging, first you need to
//create a php_error.log file and upload it to your root WordPress directory. Then simply turn on
//the log_errors PHP option and point to your logging file:

@ini_set( 'log_errors','On' );
@ini_set( 'display_errors','Off' );
@ini_set( 'error_log','/public_html/wordpress/php_error.log' );