java.lang.Object | |
↳ | org.apache.log4j.LogManager |
Use the LogManager
class to retreive Logger
instances or to operate on the current LoggerRepository
. When the LogManager
class is loaded
into memory the default initalzation procedure is inititated. The
default intialization procedure is described in the short log4j manual.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONFIGURATOR_CLASS_KEY | This constant is deprecated. This variable is for internal use only. It will become private in future versions. | |||||||||
String | DEFAULT_CONFIGURATION_FILE | This constant is deprecated. This variable is for internal use only. It will become package protected in future versions. | |||||||||
String | DEFAULT_CONFIGURATION_KEY | This constant is deprecated. This variable is for internal use only. It will become private in future versions. | |||||||||
String | DEFAULT_INIT_OVERRIDE_KEY | This constant is deprecated. This variable is for internal use only. It will become private in future versions. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the appropriate
Logger instance. | |||||||||||
Retrieve the appropriate
Logger instance. | |||||||||||
Retrieve the appropriate
Logger instance. | |||||||||||
Retrieve the appropriate root logger.
| |||||||||||
Sets
LoggerFactory but only if the correct
guard is passed as parameter. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This constant is deprecated.
This variable is for internal use only. It will
become private in future versions.
This constant is deprecated.
This variable is for internal use only. It will
become package protected in future versions.
This constant is deprecated.
This variable is for internal use only. It will
become private in future versions.
This constant is deprecated.
This variable is for internal use only. It will
become private in future versions.
Retrieve the appropriate Logger
instance.
Sets LoggerFactory
but only if the correct
guard is passed as parameter.
Initally the guard is null. If the guard is
null
, then invoking this method sets the logger
factory and the guard. Following invocations will throw a IllegalArgumentException, unless the previously set
guard
is passed as the second parameter.
This allows a high-level component to set the RepositorySelector
used by the LogManager
.
For example, when tomcat starts it will be able to install its own repository selector. However, if and when Tomcat is embedded within JBoss, then JBoss will install its own repository selector and Tomcat will use the repository selector set by its container, JBoss.
IllegalArgumentException |
---|