title: Global exception handling in ASP.NET Web API 2.1 with NLog?
body: <p>ASP.NET Web API 2.1 includes a new <a href="http://www.asp.net/web-api/overview/releases/whats-new-in-aspnet-web-api-21#global-error" rel="nofollow noreferrer">global error handling</a> capability. I found an <a href="http://www.jasonwatmore.com/post/2014/05/03/Getting-ELMAH-to-catch-ALL-unhandled-exceptions-in-Web-API-21.aspx" rel="nofollow noreferrer">example</a> that demonstrates how to log exceptions into ELMAH. But I use <a href="http://nlog-project.org/" rel="nofollow noreferrer">NLog</a> to log errors to a database table. Is it possible to use Web API global error handling with NLog? If so, please provide an example.</p>