|
SLF4J API Version 1.4.3 |
|||||||||
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 origianl
org.apache.log4j.Logger class delegating all calls to a
org.slf4j.Logger.Logger
instance.
Log4j's debug()
, info()
, warn()
,
error()
printing methods are directly mapped to their logback
equivalents. Log4j's trace()
printing method is mapped to
logback's debug()
method with a TRACE marker. Log4j's
fatal()
printing method is mapped to logback's
error()
method with a FATAL marker.
Method Summary | |
---|---|
void |
debug(Object message)
Delegates to Logger method of
logback. |
void |
debug(Object message,
Object o)
Delegates to Logger
method of logback. |
void |
debug(Object message,
Throwable t)
Delegates to Logger
method of logback. |
void |
debug(String message,
Object arg1,
Object arg2)
Delegates to Logger
method of logback. |
void |
error(Object message)
Delegates to Logger
method of logback. |
void |
error(Object message,
Object o)
Delegates to Logger
method of logback. |
void |
error(Object message,
Throwable t)
Delegates to Logger
method of logback. |
void |
error(String message,
Object arg1,
Object arg2)
Delegates to Logger
method of logback. |
void |
fatal(Object message)
Delegates to Logger
method of logback. |
void |
fatal(Object message,
Object o)
Delegates to Logger
method of logback in addition, the call is marked with a marker named "FATAL". |
void |
fatal(Object message,
Throwable t)
Delegates to Logger
method of logback in addition, the call is marked with a marker named "FATAL". |
void |
fatal(String message,
Object arg1,
Object arg2)
Delegates to Logger
method of logback in addition, the call is marked with a marker named "FATAL". |
static Logger |
getLogger(Class clazz)
|
static Logger |
getLogger(String name)
|
String |
getName()
Returns the obvious. |
static Logger |
getRootLogger()
Does the obvious. |
void |
info(Object message)
Delegates to Logger
method of logback. |
void |
info(Object message,
Object o)
Delegates to Logger
method of logback. |
void |
info(Object message,
Throwable t)
Delegates to Logger
method of logback. |
void |
info(String message,
Object arg1,
Object arg2)
Delegates to Logger
method of logback. |
boolean |
isDebugEnabled()
Delegates to Logger method of logback |
boolean |
isEnabledFor(Level l)
|
boolean |
isEnabledFor(Priority p)
|
boolean |
isErrorEnabled()
Delegates to Logger method of logback |
boolean |
isInfoEnabled()
Delegates to Logger method of logback |
boolean |
isTraceEnabled()
Delegates to Logger
method of logback. |
boolean |
isWarnEnabled()
Delegates to Logger method of logback |
void |
log(String FQCN,
Priority p,
Object msg,
Throwable t)
|
void |
trace(Object message)
Delegates to Logger method of logback,
in addition, the call is marked with a marker named "TRACE". |
void |
trace(Object message,
Object o)
Delegates to Logger
method of logback in addition, the call is marked with a marker named "TRACE". |
void |
trace(Object message,
Throwable t)
Delegates to Logger
method of logback in addition, the call is marked with a marker named "TRACE". |
void |
trace(String message,
Object arg1,
Object arg2)
Delegates to Logger
method of logback in addition, the call is marked with a marker named "TRACE". |
void |
warn(Object message)
Delegates to Logger
method of logback. |
void |
warn(Object message,
Object o)
Delegates to Logger
method of logback. |
void |
warn(Object message,
Throwable t)
Delegates to Logger
method of logback. |
void |
warn(String message,
Object arg1,
Object arg2)
Delegates to Logger
method of logback. |
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 boolean isTraceEnabled()
Logger
method of logback.
public boolean isDebugEnabled()
Logger
method of logback
public boolean isInfoEnabled()
Logger
method of logback
public boolean isWarnEnabled()
Logger
method of logback
public boolean isEnabledFor(Priority p)
public boolean isEnabledFor(Level l)
public boolean isErrorEnabled()
Logger
method of logback
public void trace(Object message)
Logger
method of logback,
in addition, the call is marked with a marker named "TRACE".
public void trace(Object message, Throwable t)
Logger
method of logback in addition, the call is marked with a marker named "TRACE".
public void trace(Object message, Object o)
Logger
method of logback in addition, the call is marked with a marker named "TRACE".
public void trace(String message, Object arg1, Object arg2)
Logger
method of logback in addition, the call is marked with a marker named "TRACE".
public void debug(Object message)
Logger
method of
logback.
public void debug(Object message, Throwable t)
Logger
method of logback.
public void debug(Object message, Object o)
Logger
method of logback.
public void debug(String message, Object arg1, Object arg2)
Logger
method of logback.
public void info(Object message)
Logger
method of logback.
public void info(Object message, Throwable t)
Logger
method of logback.
public void info(Object message, Object o)
Logger
method of logback.
public void info(String message, Object arg1, Object arg2)
Logger
method of logback.
public void warn(Object message)
Logger
method of logback.
public void warn(Object message, Throwable t)
Logger
method of logback.
public void warn(Object message, Object o)
Logger
method of logback.
public void warn(String message, Object arg1, Object arg2)
Logger
method of logback.
public void error(Object message)
Logger
method of logback.
public void error(Object message, Throwable t)
Logger
method of logback.
public void error(Object message, Object o)
Logger
method of logback.
public void error(String message, Object arg1, Object arg2)
Logger
method of logback.
public void fatal(Object message)
Logger
method of logback.
public void fatal(Object message, Throwable t)
Logger
method of logback in addition, the call is marked with a marker named "FATAL".
public void fatal(Object message, Object o)
Logger
method of logback in addition, the call is marked with a marker named "FATAL".
public void fatal(String message, Object arg1, Object arg2)
Logger
method of logback in addition, the call is marked with a marker named "FATAL".
public void log(String FQCN, Priority p, Object msg, Throwable t)
|
SLF4J API Version 1.4.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |