public static Level toLevel(int val) {
        return (Level) toLevel(val, Level.DEBUG);
    }
Convert an integer passed as argument to a level. If the conversion fails,
then this method returns {@link #DEBUG}.

@param val an int
@return a level
log4j-over-slf4j/src/main/java/org/apache/log4j/Level.java