Few days back I was working on a live wordpress site and need to debug some code, as it was live I can’t add some echo’s and exit so I added email code and then check the emails continuesly, then I reliaze I need a logging mechanism and I made this simple logging plugin, which will log my debugging code and its easy to compare anything there rather then in emails.
Call debug log plugin create a log file date wise in the wp-content/logs directory, you just need to add this plugin, activate it and call
$content = “This content needs to be logged ”;
do_action(‘calldebuglog’, $content);
where $content is any debug code you want to check in the log file, and “calldebuglog” is hook which will call the required function.
Download link : Debugging log plugin for wordpress (444)
Let me know your views and thoughts on this.

