The Problem Solver

Tell me and I will forget
Show me and I will remember
Involve me and I will understand
- Confucius -

Google Ads

This Blog

Syndication

Search

Tags

News





  • View Maurice De Beijer's profile on LinkedIn

Community

Email Notifications

Explore

Archives

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.

homeshot[1]

 

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.

 

Enjoy!

 

www.TheProblemSolver.nl
Wiki.WindowsWorkflowFoundation.eu

Published Thu, Aug 13 2009 14:40 by Maurice
Filed under: , , ,

Comments

# Asp.net built in?@ Monday, August 17, 2009 6:04 PM

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.

by Ted