Package org.apache.log4j
Class LogManager
- java.lang.Object
-
- org.apache.log4j.LogManager
-
@Deprecated(since="2022-01-27") public class LogManager extends java.lang.Object
Deprecated.Apache Log4j 1 has reached end of life in 2015 and is no longer supported.This class is a minimal implementation of the originalorg.apache.log4j.LogManager
class (as found in log4j 1.2) delegating all calls to SLF4J. This implementation does NOT implement the setRepositorySelector(), getLoggerRepository(), exists(), getCurrentLoggers(), shutdown() and resetConfiguration() methods which do not have SLF4J equivalents.
-
-
Constructor Summary
Constructors Constructor Description LogManager()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.Enumeration
getCurrentLoggers()
Deprecated.This bogus implementation returns an empty enumeration.static Logger
getLogger(java.lang.Class clazz)
Deprecated.static Logger
getLogger(java.lang.String name)
Deprecated.static Logger
getLogger(java.lang.String name, LoggerFactory loggerFactory)
Deprecated.Returns a logger instance created by loggerFactory.static Logger
getRootLogger()
Deprecated.static void
resetConfiguration()
Deprecated.Implemented as NOP.static void
shutdown()
Deprecated.Implemented as NOP.
-
-
-
Method Detail
-
getRootLogger
public static Logger getRootLogger()
Deprecated.
-
getLogger
public static Logger getLogger(java.lang.String name)
Deprecated.
-
getLogger
public static Logger getLogger(java.lang.Class clazz)
Deprecated.
-
getLogger
public static Logger getLogger(java.lang.String name, LoggerFactory loggerFactory)
Deprecated.Returns a logger instance created by loggerFactory. This method was requested in SLF4J-225. Note that log4j-over-slf4j does not ship with a LoggerFactory implementation. If this method is called, the caller must provide his/her own implementation.- Parameters:
name
- the name of the desired loggerloggerFactory
- an instance ofLoggerFactory
- Returns:
- returns a logger instance created by loggerFactory
- Since:
- 1.6.6
-
getCurrentLoggers
public static java.util.Enumeration getCurrentLoggers()
Deprecated.This bogus implementation returns an empty enumeration.- Returns:
-
shutdown
public static void shutdown()
Deprecated.Implemented as NOP.
-
resetConfiguration
public static void resetConfiguration()
Deprecated.Implemented as NOP.
-
-