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.db |
The classes in this package and sub packages provide appenders for various types of databases and methods for
accessing databases.
|
org.apache.logging.log4j.core.appender.db.jdbc |
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
|
org.apache.logging.log4j.core.appender.mom |
Message oriented middleware appenders.
|
org.apache.logging.log4j.core.appender.mom.jeromq |
Classes and interfaces for ZeroMQ/JeroMQ support.
|
org.apache.logging.log4j.core.appender.mom.kafka |
Classes and interfaces for Kafka appender support.
|
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.filter |
Log4j 2 Filter support.
|
org.apache.logging.log4j.core.impl |
Log4j 2 private implementation classes.
|
Modifier and Type | Method and Description |
---|---|
org.apache.logging.log4j.util.StringMap |
ContextDataInjector.injectContextData(List<Property> properties,
org.apache.logging.log4j.util.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 |
---|
AbstractAppender(String name,
Filter filter,
Layout<? extends Serializable> layout,
boolean ignoreExceptions,
Property[] properties)
Constructor.
|
AbstractOutputStreamAppender(String name,
Layout<? extends Serializable> layout,
Filter filter,
boolean ignoreExceptions,
boolean immediateFlush,
Property[] properties,
M manager)
Instantiates a WriterAppender and set the output destination to a new
OutputStreamWriter
initialized with os as its OutputStream . |
AbstractWriterAppender(String name,
StringLayout layout,
Filter filter,
boolean ignoreExceptions,
boolean immediateFlush,
Property[] properties,
M manager)
Instantiates.
|
HttpURLConnectionManager(Configuration configuration,
LoggerContext loggerContext,
String name,
URL url,
String method,
int connectTimeoutMillis,
int readTimeoutMillis,
Property[] headers,
SslConfiguration sslConfiguration,
boolean verifyHostname) |
SocketAppender(String name,
Layout<? extends Serializable> layout,
Filter filter,
AbstractSocketManager manager,
boolean ignoreExceptions,
boolean immediateFlush,
Advertiser advertiser,
Property[] properties) |
SyslogAppender(String name,
Layout<? extends Serializable> layout,
Filter filter,
boolean ignoreExceptions,
boolean immediateFlush,
AbstractSocketManager manager,
Advertiser advertiser,
Property[] properties) |
Constructor and Description |
---|
AbstractDatabaseAppender(String name,
Filter filter,
Layout<? extends Serializable> layout,
boolean ignoreExceptions,
Property[] properties,
T manager)
Instantiates the base appender.
|
Modifier and Type | Field and Description |
---|---|
protected Property[] |
AbstractDriverManagerConnectionSource.Builder.properties |
Modifier and Type | Method and Description |
---|---|
Property[] |
AbstractDriverManagerConnectionSource.getProperties() |
Property[] |
AbstractDriverManagerConnectionSource.Builder.getProperties() |
Modifier and Type | Method and Description |
---|---|
B |
AbstractDriverManagerConnectionSource.Builder.setProperties(Property[] properties) |
protected Properties |
AbstractDriverManagerConnectionSource.toProperties(Property[] properties) |
Constructor and Description |
---|
AbstractDriverManagerConnectionSource(String driverClassName,
String connectionString,
String actualConnectionString,
char[] userName,
char[] password,
Property[] properties) |
DriverManagerConnectionSource(String driverClassName,
String connectionString,
String actualConnectionString,
char[] userName,
char[] password,
Property[] properties) |
Constructor and Description |
---|
JmsAppender(String name,
Filter filter,
Layout<? extends Serializable> layout,
boolean ignoreExceptions,
Property[] properties,
JmsManager manager) |
Modifier and Type | Method and Description |
---|---|
static JeroMqAppender |
JeroMqAppender.createAppender(String name,
Layout<?> layout,
Filter filter,
Property[] properties,
boolean ignoreExceptions,
long affinity,
long backlog,
boolean delayAttachOnConnect,
byte[] identity,
boolean ipv4Only,
long linger,
long maxMsgSize,
long rcvHwm,
long receiveBufferSize,
int receiveTimeOut,
long reconnectIVL,
long reconnectIVLMax,
long sendBufferSize,
int sendTimeOut,
long sndHwm,
int tcpKeepAlive,
long tcpKeepAliveCount,
long tcpKeepAliveIdle,
long tcpKeepAliveInterval,
boolean xpubVerbose) |
Modifier and Type | Method and Description |
---|---|
static KafkaAppender |
KafkaAppender.createAppender(Layout<? extends Serializable> layout,
Filter filter,
String name,
boolean ignoreExceptions,
String topic,
Property[] properties,
Configuration configuration,
String key)
Deprecated.
|
static KafkaManager |
KafkaManager.getManager(LoggerContext loggerContext,
String name,
String topic,
boolean syncSend,
Property[] properties,
String key) |
Constructor and Description |
---|
KafkaManager(LoggerContext loggerContext,
String name,
String topic,
boolean syncSend,
Property[] properties,
String key) |
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,
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)
|
Constructor and Description |
---|
AsyncLoggerConfig(String name,
List<AppenderRef> appenders,
Filter filter,
org.apache.logging.log4j.Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Field and Description |
---|---|
static Property[] |
Property.EMPTY_ARRAY |
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,
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.
|
Constructor and Description |
---|
LoggerConfig(String name,
List<AppenderRef> appenders,
Filter filter,
org.apache.logging.log4j.Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Method and Description |
---|---|
Property[] |
AbstractFilterable.getPropertyArray() |
Property[] |
AbstractFilterable.Builder.getPropertyArray() |
Modifier and Type | Method and Description |
---|---|
B |
AbstractFilterable.Builder.setPropertyArray(Property[] properties) |
Constructor and Description |
---|
AbstractFilterable(Filter filter,
Property[] propertyArray) |
Modifier and Type | Method and Description |
---|---|
static void |
ThreadContextDataInjector.copyProperties(List<Property> properties,
org.apache.logging.log4j.util.StringMap result)
Copies key-value pairs from the specified property list into the specified
StringMap . |
LogEvent |
ReusableLogEventFactory.createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message message,
List<Property> properties,
Throwable t)
Creates a log event.
|
LogEvent |
DefaultLogEventFactory.createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
List<Property> properties,
Throwable t)
Creates a log event.
|
LogEvent |
LogEventFactory.createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
List<Property> properties,
Throwable t) |
LogEvent |
ReusableLogEventFactory.createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message message,
List<Property> properties,
Throwable t)
Creates a log event.
|
LogEvent |
LocationAwareLogEventFactory.createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
List<Property> properties,
Throwable t) |
LogEvent |
DefaultLogEventFactory.createEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String fqcn,
StackTraceElement location,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message data,
List<Property> properties,
Throwable t)
Creates a log event.
|
org.apache.logging.log4j.util.StringMap |
ThreadContextDataInjector.ForDefaultThreadContextMap.injectContextData(List<Property> props,
org.apache.logging.log4j.util.StringMap ignore)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
org.apache.logging.log4j.util.StringMap |
ThreadContextDataInjector.ForGarbageFreeThreadContextMap.injectContextData(List<Property> props,
org.apache.logging.log4j.util.StringMap reusable)
Puts key-value pairs from both the specified list of properties as well as the thread context into the
specified reusable StringMap.
|
org.apache.logging.log4j.util.StringMap |
ThreadContextDataInjector.ForCopyOnWriteThreadContextMap.injectContextData(List<Property> props,
org.apache.logging.log4j.util.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,
org.apache.logging.log4j.Marker marker,
String loggerFQCN,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message message,
List<Property> properties,
Throwable t)
Constructor.
|
Log4jLogEvent(String loggerName,
org.apache.logging.log4j.Marker marker,
String loggerFQCN,
StackTraceElement source,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.message.Message message,
List<Property> properties,
Throwable t)
Constructor.
|
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.