Package org.apache.logging.log4j.jul
Class LogManager
- java.lang.Object
-
- java.util.logging.LogManager
-
- org.apache.logging.log4j.jul.LogManager
-
public class LogManager extends LogManager
Log4j implementation ofLogManager
. Note that the system propertyjava.util.logging.manager
must be set toorg.apache.logging.log4j.jul.LogManager
in order to use this adaptor. This LogManager requires thelog4j-api
library to be available. Iflog4j-core
is also available, then more features ofLogger
are supported.To override the default
AbstractLoggerAdapter
that is used, specify the Log4j propertylog4j.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
-
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description LogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLogger(Logger logger)
Logger
getLogger(String name)
Enumeration<String>
getLoggerNames()
-
Methods inherited from class java.util.logging.LogManager
addConfigurationListener, checkAccess, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removeConfigurationListener, reset, updateConfiguration, updateConfiguration
-
-
-
-
Method Detail
-
addLogger
public boolean addLogger(Logger logger)
- Overrides:
addLogger
in classLogManager
-
getLogger
public Logger getLogger(String name)
- Overrides:
getLogger
in classLogManager
-
getLoggerNames
public Enumeration<String> getLoggerNames()
- Overrides:
getLoggerNames
in classLogManager
-
-