log4net or enterprise library log?

  • Thread starter Thread starter Guest
  • Start date Start date
I used to use log4net for all my logging. It seemed simplier to use. However,
after switching to use the Enterprise Library 2.0 Logging block, I am a
convert. Both frameworks can do the same things, such as log to files,
databases, email, event log, etc. As our application used most of the other
Enterprise Library 2.0 blocks, I took the time to read to understand how it
actually works. I did something very similar to:

http://www.codeproject.com/dotnet/EntLibLoggingExtended.asp

Regardless of the implementation, you should really consider which
categories you want to use and how to log. These choices may evolve as your
solution does. With Ent Lib logging, the priority and severity are used to
limit the amout of logging that is performed. The categories are used to
direct the messages to a trace listener.
 
Back
Top