views:

84

answers:

4

Hello,

I'm working on a new ASP.NET application and I'm interested in using a recommended approach for logging. My question to the community is, what logging framework do you like to use on your ASP.NET projects? What are the pros / cons? There are so many and they seem to change all the time that I'm just not sure which road to go down.

Thank you

+4  A: 

Log4Net

I've used Log4Net on a number of large projects, and it's always been reliable (and seems to be the majority of what my clients have been using already).

Ryan Hayes
+2  A: 

"ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment. "

http://code.google.com/p/elmah/

http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx

IrishChieftain
A: 

I use Log4Net as well. It works very well and outputs to a multiple interfaces like text files, telnet, DB etc. I've found it to be easy to use and configure.

jmm312
+1  A: 

I've used at least 4 different logging frameworks, including the popular one mentioned by others. Personally, I would never use that framework if it were up to me--for lots of reasons.

My personal favorite is the object guy's logging framework found here. The only drawback is that it isn't free anymore. But it's practically free--and well-worth the time you'll save compared to trying to figure out some other frameworks.

Raj