|
||||||||||
| 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
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.debug(String) method of
logback. |
void |
debug(Object message,
Object o)
Delegates to Logger.debug(String,Object)
method of logback. |
void |
debug(Object message,
Throwable t)
Delegates to Logger.debug(String,Throwable)
method of logback. |
void |
debug(String message,
Object arg1,
Object arg2)
Delegates to Logger.debug(String,Object,Object)
method of logback. |
void |
error(Object message)
Delegates to Logger.error(String)
method of logback. |
void |
error(Object message,
Object o)
Delegates to Logger.error(String,Object)
method of logback. |
void |
error(Object message,
Throwable t)
Delegates to Logger.error(String,Throwable)
method of logback. |
void |
error(String message,
Object arg1,
Object arg2)
Delegates to Logger.error(String,Object,Object)
method of logback. |
void |
fatal(Object message)
Delegates to Logger.error(String)
method of logback. |
void |
fatal(Object message,
Object o)
Delegates to Logger.error(String,Object)
method of logback in addition, the call is marked with a marker named "FATAL". |
void |
fatal(Object message,
Throwable t)
Delegates to Logger.error(String,Throwable)
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.error(String,Object,Object)
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.info(String)
method of logback. |
void |
info(Object message,
Object o)
Delegates to Logger.info(String,Object)
method of logback. |
void |
info(Object message,
Throwable t)
Delegates to Logger.info(String,Throwable)
method of logback. |
void |
info(String message,
Object arg1,
Object arg2)
Delegates to Logger.info(String,Object,Object)
method of logback. |
boolean |
isDebugEnabled()
Delegates to Logger.isDebugEnabled() method of logback |
boolean |
isEnabledFor(Level l)
|
boolean |
isEnabledFor(Priority p)
|
boolean |
isErrorEnabled()
Delegates to Logger.isErrorEnabled() method of logback |
boolean |
isInfoEnabled()
Delegates to Logger.isInfoEnabled() method of logback |
boolean |
isTraceEnabled()
Delegates to Logger.isDebugEnabled()
method of logback, in addition, the call is marked with a marker named "TRACE". |
boolean |
isWarnEnabled()
Delegates to Logger.isWarnEnabled() method of logback |
void |
log(String FQCN,
Priority p,
Object msg,
Throwable t)
|
void |
trace(Object message)
Delegates to Logger.debug(String) method of logback,
in addition, the call is marked with a marker named "TRACE". |
void |
trace(Object message,
Object o)
Delegates to Logger.debug(String,Object)
method of logback in addition, the call is marked with a marker named "TRACE". |
void |
trace(Object message,
Throwable t)
Delegates to Logger.debug(String,Throwable)
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.debug(String,Object,Object)
method of logback in addition, the call is marked with a marker named "TRACE". |
void |
warn(Object message)
Delegates to Logger.warn(String)
method of logback. |
void |
warn(Object message,
Object o)
Delegates to Logger.warn(String,Object)
method of logback. |
void |
warn(Object message,
Throwable t)
Delegates to Logger.warn(String,Throwable)
method of logback. |
void |
warn(String message,
Object arg1,
Object arg2)
Delegates to Logger.warn(String,Object,Object)
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.isDebugEnabled()
method of logback, in addition, the call is marked with a marker named "TRACE".
public boolean isDebugEnabled()
Logger.isDebugEnabled() method of logback
public boolean isInfoEnabled()
Logger.isInfoEnabled() method of logback
public boolean isWarnEnabled()
Logger.isWarnEnabled() method of logback
public boolean isEnabledFor(Priority p)
public boolean isEnabledFor(Level l)
public boolean isErrorEnabled()
Logger.isErrorEnabled() method of logback
public void trace(Object message)
Logger.debug(String) method of logback,
in addition, the call is marked with a marker named "TRACE".
public void trace(Object message,
Throwable t)
Logger.debug(String,Throwable)
method of logback in addition, the call is marked with a marker named "TRACE".
public void trace(Object message,
Object o)
Logger.debug(String,Object)
method of logback in addition, the call is marked with a marker named "TRACE".
public void trace(String message,
Object arg1,
Object arg2)
Logger.debug(String,Object,Object)
method of logback in addition, the call is marked with a marker named "TRACE".
public void debug(Object message)
Logger.debug(String) method of
logback.
public void debug(Object message,
Throwable t)
Logger.debug(String,Throwable)
method of logback.
public void debug(Object message,
Object o)
Logger.debug(String,Object)
method of logback.
public void debug(String message,
Object arg1,
Object arg2)
Logger.debug(String,Object,Object)
method of logback.
public void info(Object message)
Logger.info(String)
method of logback.
public void info(Object message,
Throwable t)
Logger.info(String,Throwable)
method of logback.
public void info(Object message,
Object o)
Logger.info(String,Object)
method of logback.
public void info(String message,
Object arg1,
Object arg2)
Logger.info(String,Object,Object)
method of logback.
public void warn(Object message)
Logger.warn(String)
method of logback.
public void warn(Object message,
Throwable t)
Logger.warn(String,Throwable)
method of logback.
public void warn(Object message,
Object o)
Logger.warn(String,Object)
method of logback.
public void warn(String message,
Object arg1,
Object arg2)
Logger.warn(String,Object,Object)
method of logback.
public void error(Object message)
Logger.error(String)
method of logback.
public void error(Object message,
Throwable t)
Logger.error(String,Throwable)
method of logback.
public void error(Object message,
Object o)
Logger.error(String,Object)
method of logback.
public void error(String message,
Object arg1,
Object arg2)
Logger.error(String,Object,Object)
method of logback.
public void fatal(Object message)
Logger.error(String)
method of logback.
public void fatal(Object message,
Throwable t)
Logger.error(String,Throwable)
method of logback in addition, the call is marked with a marker named "FATAL".
public void fatal(Object message,
Object o)
Logger.error(String,Object)
method of logback in addition, the call is marked with a marker named "FATAL".
public void fatal(String message,
Object arg1,
Object arg2)
Logger.error(String,Object,Object)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||