php - How can I use error_log() with Wordpress? -
i'm trying utilize error_log() in custom wordpress plugin building reason, can't.
when utilize error_log() site breaks, i'm not seeing errors in debug.log.
i have setup debugging in wp_config.php file this:
define('wp_debug', true); define('wp_debug_log', true); stranegly, if utilize error_log() in theme, site doesn't break, nil output debug.log either.
what need able utilize error_log() in wordpress plugin , theme?
i'm using wordpress 3.9.1.
according the codex, wp_debug_display should set true default, seem not case.
adding define('wp_debug_display', true); wp_config.php fixed error logging.
setting wp_debug_display false removed errors browser allowed them output in log.
it seem wordpress requires define('wp_debug_display'); output errors log whether set true or false.
php wordpress debugging error-logging
No comments:
Post a Comment