Home

Archive » June, 2009 «

Don’t clutter your code with isDebugEnabled

Tuesday, June 09th, 2009 | Author: FoX

The main function of a good logging implementation is to provide a clear overview of the functioning of a system. Basically, the logging must describe the inner workings of a system and provide the necessary details to the readers of the log. In fact, good logging can drastically reduce maintenance costs of your applications, especially for clustered systems.

Logging is a crucial part of every system and provides all the information about the state of a system. The key is to provide this information without cluttering the code too much with these logging statements.

Most programmers tend to use a decent logging mechanism in their applications, but few of them use it elegantly. How can we make sure that we don’t clutter our code with unnecessary statements that reduce readability?

more…

Category: Development | 12 Comments