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.managermust be set toorg.apache.logging.log4j.jul.LogManagerin order to use this adaptor. This LogManager requires thelog4j-apilibrary to be available. Iflog4j-coreis also available, then more features ofLoggerare supported.To override the default
AbstractLoggerAdapterthat is used, specify the Log4j propertylog4j.jul.LoggerAdapterand 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 booleanaddLogger(Logger logger)LoggergetLogger(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:
addLoggerin classLogManager
-
getLogger
public Logger getLogger(String name)
- Overrides:
getLoggerin classLogManager
-
getLoggerNames
public Enumeration<String> getLoggerNames()
- Overrides:
getLoggerNamesin classLogManager
-
-