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,
org.apache.logging.log4j.Level level,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
static LoggerConfig |
AsyncLoggerConfig.RootLogger.createLogger(String additivity,
org.apache.logging.log4j.Level level,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
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)
|
Modifier and Type | Class and Description |
---|---|
static class |
LoggerConfig.RootLogger
The root Logger.
|
Modifier and Type | Method and Description |
---|---|
static LoggerConfig |
LoggerConfig.createLogger(boolean additivity,
org.apache.logging.log4j.Level level,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
static LoggerConfig |
LoggerConfig.RootLogger.createLogger(String additivity,
org.apache.logging.log4j.Level level,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
LoggerConfig.createLogger(String additivity,
org.apache.logging.log4j.Level level,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Deprecated.
|
LoggerConfig |
LockingReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitUnconditionallyReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
ReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.
|
LoggerConfig |
AwaitCompletionReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
DefaultReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
AbstractConfiguration.getLogger(String loggerName)
Returns the LoggerConfig with the specified name.
|
LoggerConfig |
AbstractConfiguration.getLoggerConfig(String loggerName)
Locates the appropriate LoggerConfig for a Logger name.
|
LoggerConfig |
Configuration.getLoggerConfig(String name)
Locates the appropriate LoggerConfig for a Logger name.
|
LoggerConfig |
LoggerConfig.getParent()
Returns the parent of this LoggerConfig.
|
LoggerConfig |
Loggers.getRoot() |
LoggerConfig |
AbstractConfiguration.getRootLogger()
Returns the root Logger.
|
LoggerConfig |
Configuration.getRootLogger()
Returns the root Logger.
|
Modifier and Type | Method and Description |
---|---|
Map<String,LoggerConfig> |
AbstractConfiguration.getLoggers()
Returns a Map of all the LoggerConfigs.
|
Map<String,LoggerConfig> |
Configuration.getLoggers() |
ConcurrentMap<String,LoggerConfig> |
Loggers.getMap() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractConfiguration.addLogger(String loggerName,
LoggerConfig loggerConfig)
Add a loggerConfig.
|
void |
Configuration.addLogger(String name,
LoggerConfig loggerConfig) |
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 |
AbstractConfiguration.getReliabilityStrategy(LoggerConfig loggerConfig) |
ReliabilityStrategy |
Configuration.getReliabilityStrategy(LoggerConfig loggerConfig) |
void |
LoggerConfig.setParent(LoggerConfig parent)
Sets the parent of this LoggerConfig.
|
Modifier and Type | Method and Description |
---|---|
LoggerConfig |
LockingReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitUnconditionallyReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
ReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.
|
LoggerConfig |
AwaitCompletionReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
LoggerConfig |
DefaultReliabilityStrategy.getActiveLoggerConfig(org.apache.logging.log4j.util.Supplier<LoggerConfig> next) |
void |
LockingReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitUnconditionallyReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
ReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
LogEvent event)
Logs an event.
|
void |
AwaitCompletionReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
DefaultReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
LockingReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
AwaitUnconditionallyReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
ReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t)
Logs an event.
|
void |
AwaitCompletionReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
DefaultReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
LockingReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
AwaitUnconditionallyReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
LocationAwareReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t)
Logs an event.
|
void |
AwaitCompletionReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
void |
DefaultReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
Throwable t) |
Constructor and Description |
---|
AwaitCompletionReliabilityStrategy(LoggerConfig loggerConfig) |
AwaitUnconditionallyReliabilityStrategy(LoggerConfig loggerConfig) |
DefaultReliabilityStrategy(LoggerConfig loggerConfig) |
LockingReliabilityStrategy(LoggerConfig loggerConfig) |
Loggers(ConcurrentMap<String,LoggerConfig> map,
LoggerConfig root) |
Constructor and Description |
---|
Loggers(ConcurrentMap<String,LoggerConfig> map,
LoggerConfig root) |
Constructor and Description |
---|
LoggerConfigAdmin(LoggerContext loggerContext,
LoggerConfig loggerConfig)
Constructs a new
LoggerConfigAdmin with the specified LoggerContext
and logger config. |
Copyright © 1999-2021 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.