if ( logger.isDebugEnabled() )
  logger.debug( "Some constant string" );