Package | Description |
---|---|
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
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.
|
org.apache.logging.log4j.core.jmx |
Log4j 2 JMX support.
|
Modifier and Type | Field and Description |
---|---|
LoggerConfig |
Logger.PrivateConfig.loggerConfig
LoggerConfig to delegate the actual logging to.
|
Modifier and Type | Method and Description |
---|---|
LoggerConfig |
Logger.get() |
Constructor and Description |
---|
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.createLogger(boolean additivity,
Level level,
java.lang.String loggerName,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
static LoggerConfig |
AsyncLoggerConfig.RootLogger.createLogger(java.lang.String additivity,
Level level,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
AsyncLoggerConfig.RootLogger.createLogger(java.lang.String additivity,
java.lang.String levelName,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
|
static LoggerConfig |
AsyncLoggerConfig.createLogger(java.lang.String additivity,
java.lang.String levelName,
java.lang.String loggerName,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
|
Modifier and Type | Class and Description |
---|---|
static class |
LoggerConfig.RootLogger
The root Logger.
|
Modifier and Type | Field and Description |
---|---|
private LoggerConfig |
LockingReliabilityStrategy.loggerConfig |
private LoggerConfig |
DefaultReliabilityStrategy.loggerConfig |
private LoggerConfig |
AwaitUnconditionallyReliabilityStrategy.loggerConfig |
private LoggerConfig |
AwaitCompletionReliabilityStrategy.loggerConfig |
private LoggerConfig |
LoggerConfig.parent |
private LoggerConfig |
Loggers.root |
private LoggerConfig |
AbstractConfiguration.root |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<java.lang.String,LoggerConfig> |
AbstractConfiguration.loggerConfigs |
private java.util.concurrent.ConcurrentMap<java.lang.String,LoggerConfig> |
Loggers.map |
Modifier and Type | Method and Description |
---|---|
static LoggerConfig |
LoggerConfig.createLogger(boolean additivity,
Level level,
java.lang.String loggerName,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
static LoggerConfig |
LoggerConfig.RootLogger.createLogger(java.lang.String additivity,
Level level,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
LoggerConfig.createLogger(java.lang.String additivity,
Level level,
java.lang.String loggerName,
java.lang.String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Deprecated.
|
LoggerConfig |
ReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.
|
LoggerConfig |
LockingReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
DefaultReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitUnconditionallyReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitCompletionReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AbstractConfiguration.getLogger(java.lang.String loggerName)
Returns the LoggerConfig with the specified name.
|
LoggerConfig |
Configuration.getLoggerConfig(java.lang.String name)
Locates the appropriate LoggerConfig for a Logger name.
|
LoggerConfig |
AbstractConfiguration.getLoggerConfig(java.lang.String loggerName)
Locates the appropriate LoggerConfig for a Logger name.
|
LoggerConfig |
LoggerConfig.getParent()
Returns the parent of this LoggerConfig.
|
LoggerConfig |
Loggers.getRoot() |
LoggerConfig |
Configuration.getRootLogger()
Returns the root Logger.
|
LoggerConfig |
AbstractConfiguration.getRootLogger()
Returns the root Logger.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,LoggerConfig> |
Configuration.getLoggers() |
java.util.Map<java.lang.String,LoggerConfig> |
AbstractConfiguration.getLoggers()
Returns a Map of all the LoggerConfigs.
|
java.util.concurrent.ConcurrentMap<java.lang.String,LoggerConfig> |
Loggers.getMap() |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.addLogger(java.lang.String name,
LoggerConfig loggerConfig) |
void |
AbstractConfiguration.addLogger(java.lang.String loggerName,
LoggerConfig loggerConfig)
Add a loggerConfig.
|
(package private) abstract boolean |
LoggerConfig.LoggerConfigPredicate.allow(LoggerConfig config) |
static Loggers |
LoggersPlugin.createLoggers(LoggerConfig[] loggers)
Create a Loggers object to contain all the Loggers.
|
static ReliabilityStrategy |
ReliabilityStrategyFactory.getReliabilityStrategy(LoggerConfig loggerConfig)
Returns a new
ReliabilityStrategy instance based on the value of system property
log4j.ReliabilityStrategy . |
ReliabilityStrategy |
Configuration.getReliabilityStrategy(LoggerConfig loggerConfig) |
ReliabilityStrategy |
AbstractConfiguration.getReliabilityStrategy(LoggerConfig loggerConfig) |
private static boolean |
Configurator.setLevel(LoggerConfig loggerConfig,
Level level) |
void |
LoggerConfig.setParent(LoggerConfig parent)
Sets the parent of this LoggerConfig.
|
Modifier and Type | Method and Description |
---|---|
LoggerConfig |
ReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.
|
LoggerConfig |
LockingReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
DefaultReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitUnconditionallyReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitCompletionReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
void |
ReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event)
Logs an event.
|
void |
LockingReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
DefaultReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitUnconditionallyReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitCompletionReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
ReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
java.lang.String loggerName,
java.lang.String fqcn,
Marker marker,
Level level,
Message data,
java.lang.Throwable t)
Logs an event.
|
void |
LockingReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
java.lang.String loggerName,
java.lang.String fqcn,
Marker marker,
Level level,
Message data,
java.lang.Throwable t) |
void |
DefaultReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
java.lang.String loggerName,
java.lang.String fqcn,
Marker marker,
Level level,
Message data,
java.lang.Throwable t) |
void |
AwaitUnconditionallyReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
java.lang.String loggerName,
java.lang.String fqcn,
Marker marker,
Level level,
Message data,
java.lang.Throwable t) |
void |
AwaitCompletionReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
java.lang.String loggerName,
java.lang.String fqcn,
Marker marker,
Level level,
Message data,
java.lang.Throwable t) |
Constructor and Description |
---|
AwaitCompletionReliabilityStrategy(LoggerConfig loggerConfig) |
AwaitUnconditionallyReliabilityStrategy(LoggerConfig loggerConfig) |
DefaultReliabilityStrategy(LoggerConfig loggerConfig) |
LockingReliabilityStrategy(LoggerConfig loggerConfig) |
Loggers(java.util.concurrent.ConcurrentMap<java.lang.String,LoggerConfig> map,
LoggerConfig root) |
Constructor and Description |
---|
Loggers(java.util.concurrent.ConcurrentMap<java.lang.String,LoggerConfig> map,
LoggerConfig root) |
Modifier and Type | Field and Description |
---|---|
private LoggerConfig |
LoggerConfigAdmin.loggerConfig |
Constructor and Description |
---|
LoggerConfigAdmin(LoggerContext loggerContext,
LoggerConfig loggerConfig)
Constructs a new
LoggerConfigAdmin with the specified LoggerContext
and logger config. |