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.jdbc |
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
|
org.apache.logging.log4j.core.appender.mom.jeromq |
Classes and interfaces for ZeroMQ/JeroMQ 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.impl |
Log4j 2 private implementation classes.
|
Modifier and Type | Method | 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 | Description |
---|---|---|
Property[] |
HttpAppender.Builder.getHeaders() |
Modifier and Type | Method | Description |
---|---|---|
B |
HttpAppender.Builder.setHeaders(Property[] headers) |
Constructor | 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 | Field | Description |
---|---|---|
protected Property[] |
AbstractDriverManagerConnectionSource.Builder.properties |
Modifier and Type | Method | Description |
---|---|---|
Property[] |
AbstractDriverManagerConnectionSource.Builder.getProperties() |
|
Property[] |
AbstractDriverManagerConnectionSource.getProperties() |
Modifier and Type | Method | Description |
---|---|---|
B |
AbstractDriverManagerConnectionSource.Builder.setProperties(Property[] properties) |
|
protected Properties |
AbstractDriverManagerConnectionSource.toProperties(Property[] properties) |
Constructor | 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) |
Modifier and Type | Method | 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 | Description |
---|---|---|
static PropertiesRewritePolicy |
PropertiesRewritePolicy.createPolicy(Configuration config,
Property[] props) |
Creates a PropertiesRewritePolicy.
|
Modifier and Type | Method | 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.createLogger(String additivity,
String levelName,
String loggerName,
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.RootLogger.createLogger(String additivity,
Level level,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
Constructor | Description |
---|---|
AsyncLoggerConfig(String name,
List<AppenderRef> appenders,
Filter filter,
Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Method | Description |
---|---|---|
static Property |
Property.createProperty(String name,
String value) |
Creates a Property.
|
Modifier and Type | Method | 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 | 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.createLogger(String additivity,
Level level,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
Deprecated.
|
static LoggerConfig |
LoggerConfig.RootLogger.createLogger(String additivity,
Level level,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
Constructor | Description |
---|---|
LoggerConfig(String name,
List<AppenderRef> appenders,
Filter filter,
Level level,
boolean additive,
Property[] properties,
Configuration config,
boolean includeLocation) |
Modifier and Type | Method | Description |
---|---|---|
static void |
ThreadContextDataInjector.copyProperties(List<Property> properties,
StringMap result) |
Copies key-value pairs from the specified property list into the specified
StringMap . |
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) |
|
LogEvent |
ReusableLogEventFactory.createEvent(String loggerName,
Marker marker,
String fqcn,
Level level,
Message message,
List<Property> properties,
Throwable t) |
Creates a log event.
|
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.
|
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.
|
Constructor | Description |
---|---|
Log4jLogEvent(String loggerName,
Marker marker,
String loggerFQCN,
Level level,
Message message,
List<Property> properties,
Throwable t) |
Constructor.
|
Copyright © 1999-2018. 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.