This form avoids superfluous object creation when the logger is disabled for the TRACE level.
533534535536537538539540541542543
logger.debug(msg); } else if (LogLevel.TRACE.equalsIgnoreCase(logLevel)) { if (throwable != null) logger.trace(msg, throwable); else logger.trace(msg); } else if (LogLevel.INFO.equalsIgnoreCase(logLevel)) {
535536537538539540541542543544545
else if (LogLevel.TRACE.equalsIgnoreCase(logLevel)) { if (throwable != null) logger.trace(msg, throwable); else logger.trace(msg); } else if (LogLevel.INFO.equalsIgnoreCase(logLevel)) { if (throwable != null) logger.info(msg, throwable);