|
||||||||||
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.Category
class (as found in log4j 1.2) 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.
Field Summary | |
---|---|
protected Logger |
slf4jLogger
|
Method Summary | |
---|---|
protected String |
convertToString(Object message)
|
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. |
static Category |
getInstance(Class clazz)
|
static Category |
getInstance(String name)
|
Level |
getLevel()
Returns the assigned Level , if any, for this Category. |
String |
getName()
Returns the obvious. |
Level |
getPriority()
Deprecated. Please use getLevel() instead. |
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(Priority p)
Determines whether the priority passed as parameter is enabled in the underlying SLF4J logger. |
boolean |
isErrorEnabled()
Delegates to Logger.isErrorEnabled() method in SLF4J |
boolean |
isInfoEnabled()
Delegates to Logger.isInfoEnabled() method in SLF4J |
boolean |
isWarnEnabled()
Delegates tob Logger.isWarnEnabled() method in SLF4J |
void |
log(String FQCN,
Priority p,
Object msg,
Throwable t)
|
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 |
Field Detail |
---|
protected Logger slf4jLogger
Method Detail |
---|
public static Category getInstance(Class clazz)
public static Category getInstance(String name)
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 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)
p
- the priority to check against
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)
protected final String convertToString(Object message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |