May
3
2010

Search for better Logging Framework

Before I begin, I wanted to let you all know that I was not able to blog from long time mainly because I was bit busy with my project at office. Anyways, I am in a new project now and I am the only developer for the current project directly working with the client. I feel it has given me opportunity to implement things on my own way and at the same time flexibility to explore and implement new things.

I stared searching for logging framework. At this point, you must be thinking why not log4net. I say mainly because setting that up to usable condition was too time consuming and complex for me. Although I have been using log4net during developing my very first add-in, honestly I still cannot setup log4net without referring its website. Also as pointed out here sometimes your log4net library will be larger than the actual application!

I found a new logging framework known as .NET Logging Framework by The Object Guy. The framework is very simple to implement and framework assembly is also very small. A notable feature for me is (from author’s website),

An InsistentLogger which you can use to wrap any other logger. This logger will continually try to relog to its wrapped logger whenever the wrapped logger fails to properly log. (e.g. You could wrap a SerialSocketLogger with an InsistentLogger. Then, if the end receiving logs over a socket happens to go down temporarily, the log entries will still get logged once the receiver is back online.)

Moderately priced at $5 for a single developer, I was not surprised to know its users list already include big names like Intel, HP, IBM, Bank of America!

About the Author: Utkarsh Shigihalli

Utkarsh Shigihalli works as a Team Lead in one of the globally leading technology, consulting and outsourcing firm. He has developed several Visual Studio addins and other utilities which are well appreciated by many developers.

Leave a comment