Package | Description |
---|---|
org.apache.logging.log4j.core |
Implementation of Log4j 2.0.
|
org.apache.logging.log4j.core.async |
Provides Asynchronous Logger classes and interfaces for low-latency logging.
|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.0.
|
org.apache.logging.log4j.core.config.plugins |
Configuration of Log4j 2.0 via Plugins.
|
org.apache.logging.log4j.core.jmx |
Log4j 2.0 JMX support.
|
Modifier and Type | Field and Description |
---|---|
LoggerConfig |
Logger.PrivateConfig.loggerConfig |
Constructor and Description |
---|
Logger.PrivateConfig(Logger.PrivateConfig pc,
LoggerConfig lc) |
Modifier and Type | Class and Description |
---|---|
class |
AsyncLoggerConfig
Asynchronous Logger object that is created via configuration and can be
combined with synchronous loggers.
|
static class |
AsyncLoggerConfig.RootLogger
An asynchronous root Logger.
|
Modifier and Type | Method and Description |
---|---|
static LoggerConfig |
AsyncLoggerConfig.RootLogger.createLogger(String additivity,
String levelName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
AsyncLoggerConfig.createLogger(String additivity,
String levelName,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
Modifier and Type | Class and Description |
---|---|
static class |
LoggerConfig.RootLogger
The root Logger.
|
Modifier and Type | Method and Description |
---|---|
static LoggerConfig |
LoggerConfig.RootLogger.createLogger(String additivity,
String levelName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
LoggerConfig.createLogger(String additivity,
String levelName,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
LoggerConfig |
BaseConfiguration.getLogger(String name)
Returns the LoggerConfig with the specified name.
|
LoggerConfig |
Configuration.getLoggerConfig(String name)
Locates the appropriate LoggerConfig for a Logger name.
|
LoggerConfig |
BaseConfiguration.getLoggerConfig(String name)
Locates the appropriate LoggerConfig for a Logger name.
|
LoggerConfig |
LoggerConfig.getParent()
Returns the parent of this LoggerConfig.
|
LoggerConfig |
Loggers.getRoot() |
LoggerConfig |
BaseConfiguration.getRootLogger()
Returns the root Logger.
|
Modifier and Type | Method and Description |
---|---|
Map<String,LoggerConfig> |
Configuration.getLoggers() |
Map<String,LoggerConfig> |
BaseConfiguration.getLoggers()
Returns a Map of all the LoggerConfigs.
|
ConcurrentMap<String,LoggerConfig> |
Loggers.getMap() |
Modifier and Type | Method and Description |
---|---|
void |
BaseConfiguration.addLogger(String name,
LoggerConfig loggerConfig)
Adding a logger cannot be done atomically so is not allowed in an active configuration.
|
void |
LoggerConfig.setParent(LoggerConfig parent)
Sets the parent of this LoggerConfig.
|
Constructor and Description |
---|
Loggers(ConcurrentMap<String,LoggerConfig> map,
LoggerConfig root) |
Constructor and Description |
---|
Loggers(ConcurrentMap<String,LoggerConfig> map,
LoggerConfig root) |
Modifier and Type | Method and Description |
---|---|
static Loggers |
LoggersPlugin.createLoggers(LoggerConfig[] loggers)
Create a Loggers object to contain all the Loggers.
|
Constructor and Description |
---|
LoggerConfigAdmin(String contextName,
LoggerConfig loggerConfig)
Constructs a new
LoggerConfigAdmin with the specified contextName
and logger config. |
Copyright © 1999-2014 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.