logger.error(logRecord.getMessage(), logRecord.getThrown());
} else if (level.intValue() >= Level.WARNING.intValue()) {
logger.warn(logRecord.getMessage(), logRecord.getThrown());
} else if (level.intValue() >= Level.INFO.intValue()) {
logger.info(logRecord.getMessage(), logRecord.getThrown());
} else if (level.intValue() >= Level.FINER.intValue()) {
//Please note that FINE(500) is also caught by FINER(400)
logger.debug(logRecord.getMessage(), logRecord.getThrown());
} else if (logger.isTraceEnabled()) {
logger.trace(logRecord.getMessage(), logRecord.getThrown());
}