Can somebody please compare these two logging mechanism?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
This might be of interest: http://www.dotnetlogging.com/comparison/
I've given some descriptions below all directly from the tool's website. I prefer ELMAH which is at the bottom, but have not spent much time on Log4Net or the Logging Application Block.
Log4Net
Logging Application Block
ELMAH
This has been written about quite a bit. Here are some things to read:
http://james.newtonking.com/archive/2007/06/05/enterprise-library-logging-vs-log4net.aspx http://theiterator.com/2009/01/log4net-vs-enterprise-library-logging-application-block/ https://stackoverflow.com/questions/118047/log4net-vs-enterprise-library-which-is-better-faster
My thoughts:
If you are already using EL, you may want to just stick with EL Logging (it also integrates with the Exception Handling Block) for consistency. If I'm using EL for an application, then I tend to use EL for logging. If not then I usually favor log4net for smaller applications since the setup time is usually shorter. (Not to impugn anyone's favorite logger! :) )
I've used both and found that they both work well.