Monday, September 28, 2009

Microsoft Enterprise Library Logging Vs Log4NET

I have doing some research about the available logging services out there and found this interesting article. I have used both logging services MS and Log4NET and great thing about both is that configuration is simple and straigth forward. The problem that I had most of the time with Microsoft Enterprise Library Logging Block is that I had to create a wrapper on top so that I can log messages for different categories and handle them little bit different + formatting without having to do a lot of configuration via the configuration files.

Here is the article I am referring.

http://weblogs.asp.net/lorenh/archive/2005/02/18/376191.aspx
Here is part two:
http://weblogs.asp.net/lorenh/archive/2005/03/20/395289.aspx

Whats interesting are his stats.

See below.


Avg Requests
per Sec
% Slower
Than baseline
No Logging (baseline) 470.54
Log4net empty appender 470.46 0%
EntLib empty sink 328.19 30%
Log4net to file 441.05 6%
EntLib to file 260.75 45%

No comments:

Post a Comment