Coder Social home page Coder Social logo

mcshaz / elmah-contrib-webapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdingwall/elmah-contrib-webapi

0.0 2.0 0.0 1.52 MB

Elmah.Contrib.WebApi provides an ASP.NET Web API exception filter, ElmahHandleErrorApiAttribute, for logging errors directly to ELMAH.

Home Page: http://nuget.org/packages/Elmah.Contrib.WebApi

License: Microsoft Public License

C# 100.00%

elmah-contrib-webapi's Introduction

Elmah.Contrib.WebApi

NuGet version NuGet downloads Build status

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.

Usage

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.

Acknowledgements

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.

License

As a derivative work of Elmah.Contrib.Mvc, this library is available under the same MS-PL license.

Release History / Changelog

See the Releases page.

elmah-contrib-webapi's People

Contributors

abatishchev avatar brutaldev avatar drewfreyling avatar rdingwall avatar shchahrykovich avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.