{"id":12208,"date":"2022-05-11T05:06:09","date_gmt":"2022-05-11T09:06:09","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12208"},"modified":"2022-05-11T05:06:12","modified_gmt":"2022-05-11T09:06:12","slug":"wordpress-enable-error-log","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/wordpress-enable-error-log\/","title":{"rendered":"How to Enable Error Log in WordPress"},"content":{"rendered":"\n
Use this code snippet in wp-config.php<\/code> file to enable error log in WordPress:<\/p>\n\n\n\n
\/\/ Enable WP_DEBUG mode\ndefine( 'WP_DEBUG', true );\n\n\/\/ Enable Debug logging to the \/wp-content\/debug.log file\ndefine( 'WP_DEBUG_LOG', true );\n\n\/\/ Disable display of errors and warnings\ndefine( 'WP_DEBUG_DISPLAY', false );\n@ini_set( 'display_errors', 0 );\n\n\/\/ Use dev versions of core JS and CSS files (only needed if you are modifying these core files)\ndefine( 'SCRIPT_DEBUG', true );<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,23,25,27,15,16],"tags":[136,350,424,433,452,471,544,591,638,651],"yoast_head":"\n