A simple and effective tool for developers to log custom errors.
-
Welcome to Custom Error Log,
Using this plugin developers can log errors in their WordPress themes that have custom error messages for effective debugging. A log of al errors are stored and can be viewed in the admin area.
The idea for this plugin came from when I was developing a theme that ran background updates with an external API. The only way to know if something had gone wrong in the background update was to log the raw PHP errors to a log file which can be complicated and the errors message are not specific enough to be effective in debugging.
How I use it…
With Custom Error Logs I can now run a background update and log exactly which parts of the update had an error so I can go back and retrace my steps.
Using a front end sign up form I can log exactly who has tried to create an account and what error occurred if any.
Usage
You just put the following function in your theme to log an error…
log_error( $message );
$message being the error message you want to log.
Let me know if you can think of any interesting uses or any updates you would like to see.
Thanks
Dan Bahrami
- The topic ‘A simple and effective tool for developers to log custom errors.’ is closed to new replies.