I was searching google for this on how can log my plugin error's to debug.log after enabling the define('WP_DEBUG_LOG', true); but there is no luck for me, any expert have done this before?

Please help me on this.

  • Do you have define('WP_DEBUG', true); also? What are you doing to try to log the custom plugin errors to the file?
    – s_ha_dum
    Aug 16, 2013 at 14:00

1 Answer 1


U need to also define WP_DEBUG as true

 // Enable WP_DEBUG mode
define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

It will may help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.