Package org.apache.log4j
Class Logger
- java.lang.Object
-
- org.apache.log4j.Category
-
- org.apache.log4j.Logger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Logger
getLogger(java.lang.Class clazz)
static Logger
getLogger(java.lang.String name)
static Logger
getLogger(java.lang.String name, LoggerFactory loggerFactory)
static Logger
getRootLogger()
Does the obvious.boolean
isTraceEnabled()
Delegates toLogger.isTraceEnabled()
method of SLF4J.void
trace(java.lang.Object message)
Delegates toLogger.trace(String)
method in SLF4J.void
trace(java.lang.Object message, java.lang.Throwable t)
Delegates toLogger.trace(String,Throwable)
method in SLF4J.-
Methods inherited from class org.apache.log4j.Category
addAppender, assertLog, debug, debug, error, error, fatal, fatal, getAdditivity, getAllAppenders, getAppender, getEffectiveLevel, getInstance, getInstance, getLevel, getName, getParent, getPriority, info, info, isDebugEnabled, isEnabledFor, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, setAdditivity, setLevel, warn, warn
-
-
-
-
Method Detail
-
getLogger
public static Logger getLogger(java.lang.String name)
-
getLogger
public static Logger getLogger(java.lang.String name, LoggerFactory loggerFactory)
-
getLogger
public static Logger getLogger(java.lang.Class clazz)
-
getRootLogger
public static Logger getRootLogger()
Does the obvious.- Returns:
-
isTraceEnabled
public boolean isTraceEnabled()
Delegates toLogger.isTraceEnabled()
method of SLF4J.
-
trace
public void trace(java.lang.Object message)
Delegates toLogger.trace(String)
method in SLF4J.
-
trace
public void trace(java.lang.Object message, java.lang.Throwable t)
Delegates toLogger.trace(String,Throwable)
method in SLF4J.
-
-