Showing posts with label MS Enterprise Library. Show all posts
Showing posts with label MS Enterprise Library. Show all posts

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%

Friday, December 07, 2007

Enterprise Library Logging Timestamp format

Just for awareness the Microsoft Enterprise Library Logging Application Block for flat file trace lister allows to specified the time stamp format in the template formatter as
{timestamp(local)} for local time zone time stamp or optionally you can specified your DateTime format such as MM/dd/yyyy HH:mm:ss.

See .NET Standard DateTime String Formats at http://msdn2.microsoft.com/en-us/library/az4se3k1(vs.71).aspx