public static Level levelToJUL(org.apache.logging.log4j.Level lvl) {
        switch (lvl) {
        case OFF:
            return Level.OFF;
        case FATAL:
        case ERROR:
            return Level.SEVERE;
        case WARN:
            return Level.WARNING;
        case INFO:
            return Level.INFO;
        case DEBUG:
            return Level.FINE;
        case TRACE:
            return Level.FINER;
        case ALL:
            return Level.ALL;
        }
        return null;
    }