Class LogManager


  • public class LogManager
    extends java.util.logging.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

      • 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​(java.util.logging.Logger logger)  
      java.util.logging.Logger getLogger​(java.lang.String name)  
      java.util.Enumeration<java.lang.String> getLoggerNames()  
      • Methods inherited from class java.util.logging.LogManager

        addConfigurationListener, checkAccess, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removeConfigurationListener, reset, updateConfiguration, updateConfiguration
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogManager

        public LogManager()
    • Method Detail

      • addLogger

        public boolean addLogger​(java.util.logging.Logger logger)
        Overrides:
        addLogger in class java.util.logging.LogManager
      • getLogger

        public java.util.logging.Logger getLogger​(java.lang.String name)
        Overrides:
        getLogger in class java.util.logging.LogManager
      • getLoggerNames

        public java.util.Enumeration<java.lang.String> getLoggerNames()
        Overrides:
        getLoggerNames in class java.util.logging.LogManager