How to put logs in WordPress

Posted by Prem Tiwari | Updated on

You can enable WordPress logging adding this to wp-config.php:

you can write to the log file using the error_log() function, this is a very useful function wrapper for it, make it available in your plugin:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers