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(List<Property> properties,
StringMap reusable)
Returns a
StringMap object initialized with the specified properties and the appropriate
context data. |
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,
String name,
URL url,
String method,
int connectTimeoutMillis,
int readTimeoutMillis,
Property[] headers,
SslConfiguration sslConfiguration,
boolean verifyHostname) |
Modifier and Type | Method and Description |
---|---|
static PropertiesRewritePolicy |
PropertiesRewritePolicy.createPolicy(Configuration config,
Property[] props)
Creates a PropertiesRewritePolicy.
|
Modifier and Type | Method and Description |
---|---|
static LoggerConfig |
AsyncLoggerConfig.createLogger(boolean additivity,
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,
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)
|
Constructor and Description |
---|
AsyncLoggerConfig(String name,
List<AppenderRef> appenders,
Filter filter,
Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Method and Description |
---|---|
static Property |
Property.createProperty(String name,
String value)
Creates a Property.
|
Modifier and Type | Method and Description |
---|---|
Map<Property,Boolean> |
LoggerConfig.getProperties()
Deprecated.
use
LoggerConfig.getPropertyList() instead |
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.
|
static LoggerConfig |
LoggerConfig.createLogger(boolean additivity,
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,
Level level,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
LoggerConfig.createLogger(String additivity,
Level level,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Deprecated.
|
Constructor and Description |
---|
LoggerConfig(String name,
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(List<Property> properties,
StringMap result)
Copies key-value pairs from the specified property list into the specified
StringMap . |
LogEvent |
ReusableLogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
List<Property> properties,
Throwable t)
Creates a log event.
|
LogEvent |
DefaultLogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
List<Property> properties,
Throwable t)
Creates a log event.
|
LogEvent |
LogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message data,
List<Property> properties,
Throwable t) |
StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(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(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(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(String loggerName,
Marker marker,
String loggerFQCN,
Level level,
Message message,
List<Property> properties,
Throwable t)
Constructor.
|
Copyright © 1999-2019 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.