Error Logging Modules and Handlers for ASP.NET (MVC)

I am working on a new ASP.NET MVC app and like so many other applications out there I need to log any errors should they occur. recently I heard about ELMAH Error Logging Modules and Handlers for ASP.NET through this blog post of Scott Hanselman. So as using en existing and proven solution is always better that reinventing the wheel I decided to try ELMAH and see how easy it is to get started.


Well I can only say I am positively amazed at how easy it is.



Starting from scratch it took me less that 2 hours to download and integrate it into my current ASP.NET MVC application and log all errors to SQL Server. That is including security so not everyone can check the error log.


There are lots of additional capabilities I haven’t looked at yet like setting up an RSS feed, emailing or even tweeting errors messages. But judging from the experience so far that should prove easy enough.


My only regret is that I didn’t check it out before.


Checkout the project run by Atif Aziz here.





One thought on “Error Logging Modules and Handlers for ASP.NET (MVC)

  1. This should be built into ASP.NET to log to a text file, sql server, event log, etc back with .net 1.x.

    An IIS web site should be able to apped text to the end of a local text file without having to provide access to other local filesystem/os resources.

Leave a Reply

Your email address will not be published. Required fields are marked *