When to use isDebugEnable?

‘One of the best practices for logging with libraries like log4j is to check whether debug is enabled before writing a debug message. This is done by calling the method isDebugEnabled(). But when should you use this method? To answer this question let exeamine two examples: Example with string concatenation In the above example there …

When to use isDebugEnable? Read More »