Out of curiosity, is there any benefit when logging (using log4j) to use the above approach:
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("New Session Created");
}
rather than just:
LOGGER.debug("New Session Created");
Is it merely a (potential) performance enhancement and would it still be relevant? Should this be used to wrap ALL debug output?
Thanks for your thoughts!