Package | Description |
---|---|
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.appender.rewrite |
Apache Flume Appender.
|
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.impl |
Log4j 2 private implementation classes.
|
Modifier and Type | Method and Description |
---|---|
StringMap |
ContextDataInjector.injectContextData(java.util.List<Property> properties,
StringMap reusable)
Returns a
StringMap object initialized with the specified properties and the appropriate
context data. |
Modifier and Type | Field and Description |
---|---|
private Property[] |
HttpURLConnectionManager.headers |
private Property[] |
HttpAppender.Builder.headers |
Modifier and Type | Method and Description |
---|---|
Property[] |
HttpAppender.Builder.getHeaders() |
Modifier and Type | Method and Description |
---|---|
B |
HttpAppender.Builder.setHeaders(Property[] headers) |
Constructor and Description |
---|
HttpURLConnectionManager(Configuration configuration,
LoggerContext loggerContext,
java.lang.String name,
java.net.URL url,
java.lang.String method,
int connectTimeoutMillis,
int readTimeoutMillis,
Property[] headers,
SslConfiguration sslConfiguration,
boolean verifyHostname) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Property,java.lang.Boolean> |
PropertiesRewritePolicy.properties |
Modifier and Type | Method and Description |
---|---|
static PropertiesRewritePolicy |
PropertiesRewritePolicy.createPolicy(Configuration config,
Property[] props)
Creates a PropertiesRewritePolicy.
|
Constructor and Description |
---|
PropertiesRewritePolicy(Configuration config,
java.util.List<Property> props) |
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)
|
Constructor and Description |
---|
AsyncLoggerConfig(java.lang.String name,
java.util.List<AppenderRef> appenders,
Filter filter,
Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Property> |
LoggerConfig.properties |
private java.util.Map<Property,java.lang.Boolean> |
LoggerConfig.propertiesMap |
Modifier and Type | Method and Description |
---|---|
static Property |
Property.createProperty(java.lang.String name,
java.lang.String value)
Creates a Property.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<Property,java.lang.Boolean> |
LoggerConfig.getProperties()
Deprecated.
use
LoggerConfig.getPropertyList() instead |
java.util.List<Property> |
LoggerConfig.getPropertyList()
Returns an unmodifiable list with the configuration properties, or
null if this LoggerConfig does
not have any configuration properties. |
Modifier and Type | Method and Description |
---|---|
static StrLookup |
PropertiesPlugin.configureSubstitutor(Property[] properties,
Configuration config)
Creates the Properties component.
|
private static boolean |
LoggerConfig.containsPropertyRequiringLookup(Property[] properties) |
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.
|
Constructor and Description |
---|
LoggerConfig(java.lang.String name,
java.util.List<AppenderRef> appenders,
Filter filter,
Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Method and Description |
---|---|
static void |
ThreadContextDataInjector.copyProperties(java.util.List<Property> properties,
StringMap result)
Copies key-value pairs from the specified property list into the specified
StringMap . |
private static StringMap |
Log4jLogEvent.createContextData(java.util.List<Property> properties) |
LogEvent |
ReusableLogEventFactory.createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
Level level,
Message message,
java.util.List<Property> properties,
java.lang.Throwable t)
Creates a log event.
|
LogEvent |
LogEventFactory.createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
Level level,
Message data,
java.util.List<Property> properties,
java.lang.Throwable t) |
LogEvent |
DefaultLogEventFactory.createEvent(java.lang.String loggerName,
Marker marker,
java.lang.String fqcn,
Level level,
Message data,
java.util.List<Property> properties,
java.lang.Throwable t)
Creates a log event.
|
StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap ignore)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
StringMap |
ThreadContextDataInjector.ForGarbageFreeThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap reusable)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
StringMap |
ThreadContextDataInjector.ForCopyOnWriteThreadContextMap.injectContextData(java.util.List<Property> props,
StringMap ignore)
If there are no configuration properties, this injector will return the thread context's internal data
structure.
|
Constructor and Description |
---|
Log4jLogEvent(java.lang.String loggerName,
Marker marker,
java.lang.String loggerFQCN,
Level level,
Message message,
java.util.List<Property> properties,
java.lang.Throwable t)
Constructor.
|