public boolean isEnabledFor ( Priority p ) { switch ( p . level ) { case Level . TRACE_INT : return slf4jLogger . isTraceEnabled ( ) ; case Level . DEBUG_INT : return slf4jLogger . isDebugEnabled ( ) ; case Level . INFO_INT : return slf4jLogger . isInfoEnabled ( ) ; case Level . WARN_INT : return slf4jLogger . isWarnEnabled ( ) ; case Level . ERROR_INT : return slf4jLogger . isErrorEnabled ( ) ; case Priority . FATAL_INT : return slf4jLogger . isErrorEnabled ( ) ; } return false ; }
Determines whether the priority passed as parameter is enabled in the underlying SLF4J logger . Each log4j priority is mapped directly to its SLF4J equivalent except for FATAL which is mapped as ERROR .