Skip to content

Daily Archives: January 14th, 2009

log.debug()

So everybody knows printing debugging statements to the log file can take considerable amounts of time, right? And in order to decrease useless time logging debug statements that won’t appear in the log, you can use isDebugEnabled() to find out if you’re wasting your time, right? So you end up with; if (log.isDebugEnabled()) {    [...]