Elmah.Contrib.WebApi provides an ASP.NET Web API exception filter, ElmahHandleErrorApiAttribute
, for logging errors directly to ELMAH.
The latest package is also available as a zip from the releases page.
Simply register it during your application's start up, or on a controller-by-controller basis.
protected void Application_Start() { GlobalConfiguration.Configuration.Filters.Add(new ElmahHandleErrorApiAttribute()); ... }
Note this filter requires ASP.NET (it passes the HttpContext directly to ELMAH to record info about the HTTP request). It will not work in a self-hosted WCF application.
This library is a port of Fabian Vilers' Elmah.Contrib.Mvc to ASP.NET Web API. The original implementation (for MVC) can be found here.
As a derivative work of Elmah.Contrib.Mvc, this library is available under the same MS-PL license.
Release History / ChangelogSee the Releases page.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4