Package org.apache.log4j
Class Logger
- java.lang.Object
-
- org.apache.log4j.Category
-
- org.apache.log4j.Logger
-
@Deprecated(since="2022-01-27") public class Logger extends Category
Deprecated.Apache Log4j 1 has reached end of life in 2015 and is no longer supported.This class is a minimal implementation of the original
org.apache.log4j.Loggerclass (as found in log4j 1.2) delegating all calls to aLoggerinstance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LoggergetLogger(java.lang.Class clazz)Deprecated.static LoggergetLogger(java.lang.String name)Deprecated.static LoggergetLogger(java.lang.String name, LoggerFactory loggerFactory)Deprecated.static LoggergetRootLogger()Deprecated.Does the obvious.booleanisTraceEnabled()Deprecated.Delegates toLogger.isTraceEnabled()method of SLF4J.voidtrace(java.lang.Object message)Deprecated.Delegates toLogger.trace(String)method in SLF4J.voidtrace(java.lang.Object message, java.lang.Throwable t)Deprecated.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)
Deprecated.
-
getLogger
public static Logger getLogger(java.lang.String name, LoggerFactory loggerFactory)
Deprecated.
-
getLogger
public static Logger getLogger(java.lang.Class clazz)
Deprecated.
-
getRootLogger
public static Logger getRootLogger()
Deprecated.Does the obvious.- Returns:
-
isTraceEnabled
public boolean isTraceEnabled()
Deprecated.Delegates toLogger.isTraceEnabled()method of SLF4J.
-
trace
public void trace(java.lang.Object message)
Deprecated.Delegates toLogger.trace(String)method in SLF4J.
-
trace
public void trace(java.lang.Object message, java.lang.Throwable t)Deprecated.Delegates toLogger.trace(String,Throwable)method in SLF4J.
-
-