ISerialized .Net, C#, Scrum and agile software development

3Jan/091

Logging in .Net: a short study

I have been using different third-party logging tools for both .Net (C# and C++) and Java, but in my current project we are using a custom logging tool. Don't ask me why we have written our own framework for this, but I guess it's partly because we have worked on our current code base since before .Net 1.0 was released, hence I guess the number of available frameworks at that time was quite limited. But now I am tired of spending time and money maintaining code we could get for free elsewhere!
So I started looking at the different frameworks available out there. I don't find the differences very big, but shifting from one framework to another requires some resources, so I don't want to do this shift more than once, wasting time and money by migrating to a "dead horse".
Important factors:

  • Framework still in a 0.x version (beta)?
  • Current release
  • New releases in pipeline?
  • Support for .Net 3.5
  • Logg reader available
  • Logging to Xml or text?
  • Discussion forums?
  • Popular

So What are my finidings?
I created this overview of the available framework:

Basically I am down to two choices: Log4net and NLog.

Log4net is a well know framework, which has been around for a very long time, and has become more of an industry standard for logging, but keeping in mind that there has been no development for years, I would guess, that log4net will slowly die out.
NLog on the other hand is still under developement, and is currently working with .Net 3.5 support, and with a good discussion forum, the choice is cleare, and we have a winner: NLog! 

Posted by Pål Eie

Comments (1) Trackbacks (0)
  1. For a great way to manage and analyze the data NLog generates check out Gibraltar.
    http://GibraltarSoftware.com/See

    In fact, we work closely with the author of NLog. We’ll be supporting NLog 2.0 and he endorses Gibraltar as the best analysis tool for NLog:
    http://nlog-project.org/blog/2009/11/01/gibraltar-adapter-for-nlog-released.html


Leave a comment

No trackbacks yet.