Package org.apache.log4j
Class LogManager
- java.lang.Object
-
- org.apache.log4j.LogManager
-
public final class LogManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LogManager.PrivateManager
Internal LogManager.private static class
LogManager.Repository
The Repository.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIGURATOR_CLASS_KEY
Deprecated.This variable is for internal use only.static java.lang.String
DEFAULT_CONFIGURATION_FILE
Deprecated.This variable is for internal use only.static java.lang.String
DEFAULT_CONFIGURATION_KEY
Deprecated.This variable is for internal use only.static java.lang.String
DEFAULT_INIT_OVERRIDE_KEY
Deprecated.This variable is for internal use only.(package private) static java.lang.String
DEFAULT_XML_CONFIGURATION_FILE
private static boolean
isLog4jCore
private static LoggerRepository
REPOSITORY
-
Constructor Summary
Constructors Modifier Constructor Description private
LogManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Logger
exists(java.lang.String name)
static java.util.Enumeration
getCurrentLoggers()
static Logger
getLogger(java.lang.Class<?> clazz)
static Logger
getLogger(java.lang.String name)
static Logger
getLogger(java.lang.String name, LoggerFactory factory)
static LoggerRepository
getLoggerRepository()
static Logger
getRootLogger()
(package private) static void
reconfigure()
static void
resetConfiguration()
No-op implementation.static void
setRepositorySelector(RepositorySelector selector, java.lang.Object guard)
No-op implementation.static void
shutdown()
No-op implementation.
-
-
-
Field Detail
-
DEFAULT_CONFIGURATION_FILE
@Deprecated public static final java.lang.String DEFAULT_CONFIGURATION_FILE
Deprecated.This variable is for internal use only. It will become package protected in future versions.- See Also:
- Constant Field Values
-
DEFAULT_CONFIGURATION_KEY
@Deprecated public static final java.lang.String DEFAULT_CONFIGURATION_KEY
Deprecated.This variable is for internal use only. It will become private in future versions.- See Also:
- Constant Field Values
-
CONFIGURATOR_CLASS_KEY
@Deprecated public static final java.lang.String CONFIGURATOR_CLASS_KEY
Deprecated.This variable is for internal use only. It will become private in future versions.- See Also:
- Constant Field Values
-
DEFAULT_INIT_OVERRIDE_KEY
@Deprecated public static final java.lang.String DEFAULT_INIT_OVERRIDE_KEY
Deprecated.This variable is for internal use only. It will become private in future versions.- See Also:
- Constant Field Values
-
DEFAULT_XML_CONFIGURATION_FILE
static final java.lang.String DEFAULT_XML_CONFIGURATION_FILE
- See Also:
- Constant Field Values
-
REPOSITORY
private static final LoggerRepository REPOSITORY
-
isLog4jCore
private static final boolean isLog4jCore
-
-
Method Detail
-
getRootLogger
public static Logger getRootLogger()
-
getLogger
public static Logger getLogger(java.lang.String name)
-
getLogger
public static Logger getLogger(java.lang.Class<?> clazz)
-
getLogger
public static Logger getLogger(java.lang.String name, LoggerFactory factory)
-
exists
public static Logger exists(java.lang.String name)
-
getCurrentLoggers
public static java.util.Enumeration getCurrentLoggers()
-
reconfigure
static void reconfigure()
-
shutdown
public static void shutdown()
No-op implementation.
-
resetConfiguration
public static void resetConfiguration()
No-op implementation.
-
setRepositorySelector
public static void setRepositorySelector(RepositorySelector selector, java.lang.Object guard) throws java.lang.IllegalArgumentException
No-op implementation.- Parameters:
selector
- The RepositorySelector.guard
- prevents calls at the incorrect time.- Throws:
java.lang.IllegalArgumentException
- if a parameter is invalid.
-
getLoggerRepository
public static LoggerRepository getLoggerRepository()
-
-