private Level translateLoggerLevel(LogLevel value) {
        switch (value) {
            case ERROR:
                return Level.ERROR;
            case WARN:
                return Level.WARN;
            case INFO:
                return Level.INFO;
            case DEBUG:
                return Level.DEBUG;
            case TRACE:
                return Level.TRACE;
            default:
                throw new IllegalStateException("Unexpected logger level value: " + value);
        }
    }
Log4j2 logger factory.

@author Marc Savy {@literal <msavy@redhat.com>}
common/logging/log4j2/src/main/java/io/apiman/common/logging/log4j2/Log4j2LoggerFactory.java