printing methods are directly
mapped to their SLF4J equivalents. Log4j's
Deprecated.
info
(java.lang.Object message,
java.lang.Throwable t)
boolean
isDebugEnabled
()
boolean
isEnabledFor
(
Priority
p)
Determines whether the priority passed as parameter is enabled in the
underlying SLF4J logger.
boolean
isErrorEnabled
()
boolean
isInfoEnabled
()
boolean
isWarnEnabled
()
log
(
Priority
p,
java.lang.Object message)
log
(
Priority
p,
java.lang.Object message,
java.lang.Throwable t)
log
(java.lang.String FQCN,
Priority
p,
java.lang.Object msg,
java.lang.Throwable t)
setAdditivity
(boolean additive)
setLevel
(
Level
level)
warn
(java.lang.Object message)
warn
(java.lang.Object message,
java.lang.Throwable t)
getEffectiveLevel
public Level getEffectiveLevel()
Return the level in effect for this category/logger.
The result is computed by simulation.
Returns:
getLevel
public final Level getLevel()
Returns the assigned
Level
, if any, for this Category. This
implementation always returns null.
Returns:
Level - the assigned Level, can be
null
.
isEnabledFor
public boolean isEnabledFor(Priority p)
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.
Parameters:
p
- the priority to check against
Returns:
true if this logger is enabled for the given level, false
otherwise.
public void debug(java.lang.Object message,
java.lang.Throwable t)
public void info(java.lang.Object message,
java.lang.Throwable t)
public void warn(java.lang.Object message,
java.lang.Throwable t)
public void error(java.lang.Object message,
java.lang.Throwable t)
public void fatal(java.lang.Object message,
java.lang.Throwable t)