I am doing a code review and I would like your thought about a small piece of code:
if(logger.isDebugEnabled())
{
    logger.debug("debug log");
} 
Is there a real reason/benefit of doing the test if(logger.isDebugEnabled()) ?
Why not just write logger.debug("debug log"); without the test ?