Geeks With Blogs

The Life and Times of a Dev Yes, we're really that weird

Things have been a little crazy at work, so I haven't posted for a while.

I was reading an article on debugging:

Wow, are there better ways to debug or what??  My personal favorite is log4net (related to log4j--see  Basically, you can put different levels of logging into your code (all, debug, info, warning, error, fatal) and have them output to a variety of sources, such as text files, rolling text files, event log, remote listener, database, etc.  The best part is that the logging level is configurable at run time, meaning no conditional compilation, no removal of debug code, etc.  Very good for large applications.

The best part is that if done correctly, there is virtually no penalty for keeping your debug code in your application.  The cost is about the same as a boolean comparison, if done correctly.

If you haven't already used it, you should try it.

Posted on Tuesday, July 4, 2006 7:58 AM Work | Back to top

Comments on this post: Debugging and error logging

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Robert May | Powered by: