Installing ELMAH for simple error logging
Edit
Finding a logging lib for your .Net MVC project like me? I was thinking log4net is the choice I will be after. Yet, someone point ELMAH to me, and after reading what it could do and how easily it could be setup, I know this is the .Net MVC logger I will use for all my future projects.
Some feature Highlights:
- Logging of nearly all unhandled exceptions.
- Easy to setup, just drop 2 files and add a few lines in web.config
- A web page to remotely view the entire log of recoded exceptions.
- A web page to remotely view the full details of any one logged exception, including colored stack traces.
- In many cases, you can review the original yellow screen of death that ASP.NET generated for a given exception, even with customErrorsmode turned off.
- An e-mail notification of each error at the time it occurs.
- An RSS feed of the last 15 errors from the log.
- Get a digest RSS feed that lists errors by day and up to last 15 days.
- Download the whole error log into a single CSV file for analysis, filtering and charting using Microsoft Excel or Microsoft Log Parser.
- Send error notifications as tweets to Twitter.
- Filter unwanted exceptions, programmatically and via configuration.
- Log errors to several back-end storages:
- Microsoft SQL Server
- Oracle (OracleErrorLog)
- SQLite (version 3) database file
- Microsoft Access (AccessErrorLog)
- VistaDB (VistaDBErrorLog); deprecated in release 1.2
- Loose XML files
- RAM (in-memory)
- SQL Server Compact Edition
- MySQL
- PostgreSQL
Here is some articles to see how simple it could be setup
- Installing ELMAH for simple error logging
- http://dillieodigital.wordpress.com/2011/03/30/elmah-a-quick-start-tutorial-and-guide/
- http://www.asp.net/hosting/tutorials/logging-error-details-with-elmah-cs
- Installing ELMAH for simple error logging
- http://dillieodigital.wordpress.com/2011/03/30/elmah-a-quick-start-tutorial-and-guide/
- http://www.asp.net/hosting/tutorials/logging-error-details-with-elmah-cs
A more formal tutorial : http://www.asp.net/hosting/tutorials/logging-error-details-with-elmah-cs
Here is the project site : http://code.google.com/p/elmah/
Installing ELMAH for simple error logging
Reviewed by DF
on
2:29:00 AM
Rating: