Package org.apache.log4j
Class LogManager
- java.lang.Object
-
- org.apache.log4j.LogManager
-
public final class LogManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGURATOR_CLASS_KEY
Deprecated.This variable is for internal use only.static String
DEFAULT_CONFIGURATION_FILE
Deprecated.This variable is for internal use only.static String
DEFAULT_CONFIGURATION_KEY
Deprecated.This variable is for internal use only.static String
DEFAULT_INIT_OVERRIDE_KEY
Deprecated.This variable is for internal use only.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Logger
exists(String name)
static Enumeration
getCurrentLoggers()
static Logger
getLogger(Class<?> clazz)
static Logger
getLogger(String name)
static Logger
getLogger(String name, LoggerFactory factory)
static LoggerRepository
getLoggerRepository()
static Logger
getRootLogger()
static void
resetConfiguration()
No-op implementation.static void
setRepositorySelector(RepositorySelector selector, Object guard)
No-op implementation.static void
shutdown()
No-op implementation.
-
-
-
Field Detail
-
DEFAULT_CONFIGURATION_FILE
@Deprecated public static final 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 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 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 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
-
-
Method Detail
-
getRootLogger
public static Logger getRootLogger()
-
getLogger
public static Logger getLogger(String name, LoggerFactory factory)
-
getCurrentLoggers
public static Enumeration getCurrentLoggers()
-
shutdown
public static void shutdown()
No-op implementation.
-
resetConfiguration
public static void resetConfiguration()
No-op implementation.
-
setRepositorySelector
public static void setRepositorySelector(RepositorySelector selector, Object guard) throws IllegalArgumentException
No-op implementation.- Parameters:
selector
- The RepositorySelector.guard
- prevents calls at the incorrect time.- Throws:
IllegalArgumentException
- if a parameter is invalid.
-
getLoggerRepository
public static LoggerRepository getLoggerRepository()
-
-