public static Level intToLevel(int levelInt) {
        switch (levelInt) {
        case (TRACE_INT):
            return TRACE;
        case (DEBUG_INT):
            return DEBUG;
        case (INFO_INT):
            return INFO;
        case (WARN_INT):
            return WARN;
        case (ERROR_INT):
            return ERROR;
        default:
            throw new IllegalArgumentException("Level integer [" + levelInt + "] not recognized.");
        }
    }
SLF4J's internal representation of Level.


@author Ceki G&uuml;lc&uuml;
@since 1.7.15
slf4j-api/src/main/java/org/slf4j/event/Level.java