private static Level slf4jLevelToJULLevel(org.slf4j.event.Level slf4jLevel) {
        Level julLevel;
        switch (slf4jLevel) {
        case TRACE:
            julLevel = Level.FINEST;
            break;
        case DEBUG:
            julLevel = Level.FINE;
            break;
        case INFO:
            julLevel = Level.INFO;
            break;
        case WARN:
            julLevel = Level.WARNING;
            break;
        case ERROR:
            julLevel = Level.SEVERE;
            break;
        default:
            throw new IllegalStateException("Level " + slf4jLevel + " is not recognized.");
        }
        return julLevel;
    }
Fill in caller data if possible.

@param record The record to update
slf4j-jdk14/src/main/java/org/slf4j/jul/JDK14LoggerAdapter.java