public class LogManager extends LogManager
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.
LOGGING_MXBEAN_NAME
Constructor and Description |
---|
LogManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
addLogger(Logger logger) |
Logger |
getLogger(String name) |
Enumeration<String> |
getLoggerNames() |
addPropertyChangeListener, checkAccess, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removePropertyChangeListener, reset
public boolean addLogger(Logger logger)
addLogger
in class LogManager
public Logger getLogger(String name)
getLogger
in class LogManager
public Enumeration<String> getLoggerNames()
getLoggerNames
in class LogManager
Copyright © 1999-2018 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.