Package org.apache.log4j
Class Logger
- java.lang.Object
-
- org.apache.log4j.Category
-
- org.apache.log4j.Logger
-
-
Field Summary
-
Fields inherited from class org.apache.log4j.Category
slf4jLogger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLogger(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoggergetLogger(java.lang.Class clazz)static LoggergetLogger(java.lang.String name)static LoggergetLogger(java.lang.String name, LoggerFactory loggerFactory)static LoggergetRootLogger()Does the obvious.booleanisTraceEnabled()Delegates toLogger.isTraceEnabled()method of SLF4J.voidtrace(java.lang.Object message)Delegates toLogger.trace(String)method in SLF4J.voidtrace(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, convertToString, debug, debug, error, error, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getEffectiveLevel, getInstance, getInstance, getLevel, getName, getParent, getPriority, info, info, isDebugEnabled, isEnabledFor, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, setAdditivity, setLevel, warn, warn
-
-
-
-
Constructor Detail
-
Logger
protected Logger(java.lang.String name)
-
-
Method Detail
-
getLogger
public static Logger getLogger(java.lang.String name, LoggerFactory loggerFactory)
-
getRootLogger
public static Logger getRootLogger()
Does the obvious.- Returns:
- the root logger
-
isTraceEnabled
public boolean isTraceEnabled()
Delegates toLogger.isTraceEnabled()method of SLF4J.- Returns:
- whether this logger is enabled for the level TRACE
-
trace
public void trace(java.lang.Object message)
Delegates toLogger.trace(String)method in SLF4J.- Parameters:
message- the message to log
-
trace
public void trace(java.lang.Object message, java.lang.Throwable t)
Delegates toLogger.trace(String,Throwable)method in SLF4J.- Parameters:
message- the message to logt- a Throwable to log
-
-