I recently released the WordPress plugin, “Simple Error Handler”. This plugin produces a stack trace when a PHP Notice or Deprecation warning occurs. The administrator can set the error level that is trapped from the admin settings page. Other than that it could provide a developer with an easy start to make a customized error handler or logger.
Use of the plugin is described on the Simple Error Handler page.
The code is written in standard procedural PHP as an example of writing plugins in this style. Like Simple Access Control it’s well commented and was built with use as an example in mind. Feel free to pick it up and modify it to your requirements. I will be posting an annotated version of the code as a tutorial in the near future.