title: Custom Error Handling in Wordpress Plugins
body: <p>I'm creating a public use Wordpress plugin and working on general error handling/logging. I've struggled to find any sort of "best practices" when it comes to Wordpress plugins. </p>
  
  <p>In the realm of regular PHP, it seems <a href="http://www.sitepoint.com/error-handling-in-php/" rel="nofollow">good practice</a> to set your <code>error_reporting</code>, create a custom error handler using <code>set_error_handler</code> and then <code>trigger_error</code> to capture/log details about an error. Is this a BAD idea in Wordpress plugins?</p>
  
  <p>In the large number of plugins I've looked at, it seems no one is using this practice, which is why I wonder. Do setting custom handlers like this interfere with other plugins or something? Is there a better way to handle/log errors in a Wordpress plugin?</p>
  
  <p>Thanks!</p>