@Deprecated
    public static Priority toPriority(int val, Priority defaultPriority) {
        return Level.toLevel(val, (Level) defaultPriority);
    }
@deprecated Please use the {@link Level#toLevel(int, Level)} method instead.   

@param val an integer value
@param defaultPriority a default priority value
@return corresponding Priority value
log4j-over-slf4j/src/main/java/org/apache/log4j/Priority.java