Search code examples
asp.netloggingexception-logging

What is the most efficient and performant logging solution for ASP.NET?


I want to add logging to the ASP.NET 2.0 web site that I've inherited from a previous developer. The application just spits out exceptions when they occur, and there's no record of financial transactions that have executed.

I've been looking at Log4net, which I've used in the past, as well as NLog and BitFactory. What I really need to know is how to best implement a logging framework in my application, which runs inside SharePoint. I need something that doesn't bog down the application.

Is there a generally accepted logging pattern for ASP.NET? How did you implement logging in your web site?


Solution

  • The system that I use in a lot of my ASP.NET applications is ELMAH (Error Logging Modules And Handlers). Don't know if it will offer all of the features you want, but what I really like about it is getting the Yellow Screen of Death and stack trace via email whenever an unhandled exception occurs.