Microsoft Logging
Posted on February 7, 2007
Filed Under Uncategorized | Leave a Comment
Boy is this a sensitive area. On my current project there has been a lot of interest around how best do you log on the Microsoft Platform. There are essential three main contenders when working with the .NET 2.0 Framework.
- Log4Net – It works! However, the only issue here is that its a dead project. The last release was sometime in July 2003. Basically, if what want anything now, you do it yourself.
- System.Diagnostics – This to my mind is a bit low level for me given that I’ve been spoilt by the Apache guys with their log4xxx family of logging projects. The thought of rolling my own from scratch seems silly.
- Logging Application Blocks – Thankfully, the Microsoft Patterns and Practice folks have done the hard work and build a logging framework atop of the .NET 2.0 Framework to provide my logging creature comforts. This is a great was to read up on Logging Application Blocks.
I would strongly recommend taking a look at Logging Application Blocks, even if you are already knee deep in Log4net, just so you know that there are viable alternatives. The Logging Applicaton Blocks comes bundled as part of the Enterprise Library 2.0 January 2006 release. Version 3.0 of the Enterprise Library is due to be release in March, but you can get early, pretty stable version of the it now.
Comments
Leave a Reply

