|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.Category
public class Category
This class is a minimal implementation of the original
org.apache.log4j.Logger
class by delegation of all calls
to a org.slf4j.Logger.Logger
instance.
Log4j's trace
, debug()
, info()
,
warn()
, error()
printing methods are directly
mapped to their SLF4J equivalents. Log4j's fatal()
printing method is mapped to SLF4J's error()
method
with a FATAL marker.
Method Summary | |
---|---|
void |
debug(Object message)
Delegates to Logger.debug(String) method of
SLF4J. |
void |
debug(Object message,
Throwable t)
Delegates to Logger.debug(String,Throwable)
method in SLF4J. |
void |
error(Object message)
Delegates to Logger.error(String)
method in SLF4J. |
void |
error(Object message,
Throwable t)
Delegates to Logger.error(String,Throwable)
method in SLF4J. |
void |
fatal(Object message)
Delegates to Logger.error(String)
method in SLF4J. |
void |
fatal(Object message,
Throwable t)
Delegates to Logger.error(String,Throwable)
method in SLF4J. |
Level |
getEffectiveLevel()
Return the level in effect for this category/logger. |
Level |
getLevel()
Returns the assigned Level , if any, for this Category. |
static Logger |
getLogger(Class clazz)
|
static Logger |
getLogger(String name)
|
String |
getName()
Returns the obvious. |
Level |
getPriority()
Deprecated. Please use getLevel() instead. |
static Logger |
getRootLogger()
Does the obvious. |
void |
info(Object message)
Delegates to Logger.info(String)
method in SLF4J. |
void |
info(Object message,
Throwable t)
Delegates to Logger.info(String,Throwable)
method in SLF4J. |
boolean |
isDebugEnabled()
Delegates to Logger.isDebugEnabled() method in SLF4J |
boolean |
isEnabledFor(Level l)
Determines whether the level passes as parameter is enabled in the underlying SLF4J logger. |
boolean |
isEnabledFor(Priority p)
Delegates to isEnabledFor(Level) . |
boolean |
isErrorEnabled()
Delegates to Logger.isErrorEnabled() method in SLF4J |
boolean |
isInfoEnabled()
Delegates to Logger.isInfoEnabled() method in SLF4J |
boolean |
isTraceEnabled()
Delegates to Logger.isTraceEnabled()
method of SLF4J. |
boolean |
isWarnEnabled()
Delegates to Logger.isWarnEnabled() method in SLF4J |
void |
log(String FQCN,
Priority p,
Object msg,
Throwable t)
|
void |
trace(Object message)
Delegates to Logger.trace(String) method in SLF4J. |
void |
trace(Object message,
Throwable t)
Delegates to Logger.trace(String,Throwable)
method in SLF4J. |
void |
warn(Object message)
Delegates to Logger.warn(String)
method in SLF4J. |
void |
warn(Object message,
Throwable t)
Delegates to Logger.warn(String,Throwable)
method in SLF4J. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Logger getLogger(String name)
public static Logger getLogger(Class clazz)
public static Logger getRootLogger()
public String getName()
public Level getEffectiveLevel()
The result is computed by simulation.
public final Level getLevel()
Level
, if any, for this Category.
This implementation always returns null.
null
.public final Level getPriority()
getLevel()
instead.
public boolean isTraceEnabled()
Logger.isTraceEnabled()
method of SLF4J.
public boolean isDebugEnabled()
Logger.isDebugEnabled()
method in SLF4J
public boolean isInfoEnabled()
Logger.isInfoEnabled()
method in SLF4J
public boolean isWarnEnabled()
Logger.isWarnEnabled()
method in SLF4J
public boolean isErrorEnabled()
Logger.isErrorEnabled()
method in SLF4J
public boolean isEnabledFor(Priority p)
isEnabledFor(Level)
.
p
- the priority to check against
public boolean isEnabledFor(Level l)
l
- the level to check against
public void trace(Object message)
Logger.trace(String)
method in SLF4J.
public void trace(Object message, Throwable t)
Logger.trace(String,Throwable)
method in SLF4J.
public void debug(Object message)
Logger.debug(String)
method of
SLF4J.
public void debug(Object message, Throwable t)
Logger.debug(String,Throwable)
method in SLF4J.
public void info(Object message)
Logger.info(String)
method in SLF4J.
public void info(Object message, Throwable t)
Logger.info(String,Throwable)
method in SLF4J.
public void warn(Object message)
Logger.warn(String)
method in SLF4J.
public void warn(Object message, Throwable t)
Logger.warn(String,Throwable)
method in SLF4J.
public void error(Object message)
Logger.error(String)
method in SLF4J.
public void error(Object message, Throwable t)
Logger.error(String,Throwable)
method in SLF4J.
public void fatal(Object message)
Logger.error(String)
method in SLF4J.
public void fatal(Object message, Throwable t)
Logger.error(String,Throwable)
method in SLF4J. In addition, the call is marked with a marker named "FATAL".
public void log(String FQCN, Priority p, Object msg, Throwable t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |