title: How to handle (i.e. log) errors in restify
body: <p>In our restify app, when we pass an error to <code>next</code>, a generic 500 error is returned, which is all just fine. However, I need to also log the details of the error somewhere so that I know what happened.</p>
  
  <p>Previously, I worked on an express application, and a centralized error-handling middleware gave us the ability to do any arbitrary code when receiving errors, like logging. </p>
  
  <p>What's the "restify way" to centralizing the logging of error details? I do not want to sprinkle logging statements throughout the entire app.</p>