default public boolean isEnabledForLevel(Level level) {
        int levelInt = level.toInt();
        switch (levelInt) {
        case (TRACE_INT):
            return isTraceEnabled();
        case (DEBUG_INT):
            return isDebugEnabled();
        case (INFO_INT):
            return isInfoEnabled();
        case (WARN_INT):
            return isWarnEnabled();
        case (ERROR_INT):
            return isErrorEnabled();
        default:
            throw new IllegalArgumentException("Level [" + level + "] not recognized.");
        }
    }
Returns whether this Logger is enabled for a given {@link Level}. 

@param level
@return true if enabled, false otherwise.
slf4j-api/src/main/java/org/slf4j/Logger.java