Package org.apache.logging.log4j.jul
Class LogManager
java.lang.Object
java.util.logging.LogManager
org.apache.logging.log4j.jul.LogManager
Log4j implementation of
LogManager. Note that the system property
java.util.logging.manager must be set to org.apache.logging.log4j.jul.LogManager in order to use
this adaptor. This LogManager requires the log4j-api library to be available. If log4j-core is
also available, then more features of Logger are supported.
To override the default AbstractLoggerAdapter that is used, specify the Log4j property
log4j.jul.LoggerAdapter and set it to the fully qualified class name of a custom
implementation. All implementations must have a default constructor.
- Since:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final AbstractLoggerAdapterprivate final ThreadLocal<Set<String>> Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods inherited from class java.util.logging.LogManager
addConfigurationListener, checkAccess, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removeConfigurationListener, reset, updateConfiguration, updateConfiguration
-
Field Details
-
LOGGER
-
loggerAdapter
-
recursive
-
-
Constructor Details
-
LogManager
public LogManager()
-
-
Method Details
-
addLogger
- Overrides:
addLoggerin classLogManager
-
getLogger
- Overrides:
getLoggerin classLogManager
-
getLoggerNames
- Overrides:
getLoggerNamesin classLogManager
-