Sunday, May 10, 2009

Another ELMAH Convert

I just tried out ELMAH and I am yet another convert.

This project is getting some attention all of a sudden and it deserves it.  The project is a great library for an easy to use .NET logging utility.  I spent the last two or three hours incorporating it into a pet project of mine and it is exactly what I was looking for.  I was able to add database logging to my web site and send emails to GMail.  From there I retrieve then into a FogBugz account, but that's another story.

The basic ELMAH set up is simple.  That article may look long, but that's all there is to it.  For the most part.  There are a few other coding gems out there that I also took advantage of.

This is a wiki page I came across about how to secure ELMAH for remote use.

Here is a great article on how to make ELMAH play nicely with SMTP servers that require SSL.  Namely, but quite possibly Yahoo and others as well.  [Edit: Turns out this was a known issue and there is a fix in the current trunk of the project. Here's some info.]

And last but not least, this wonderful web page explains how to create your own ASP.NET MVC error handler attribute that makes ELMAH appear as if the two frameworks were designed for each other.

There's plenty more to learn about ELMAH such as signalling and the great features of the elmah.axd report tool, but the above resources will get you going pretty darn quick.

Great job on the project Atif.

No comments:

Post a Comment