Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2.0 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.rewrite |
Apache Flume Appender.
|
org.apache.logging.log4j.core.appender.rolling |
Rolling File Appender and support classes.
|
org.apache.logging.log4j.core.appender.routing |
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.0.
|
org.apache.logging.log4j.core.config.plugins |
Configuration of Log4j 2.0 via Plugins.
|
org.apache.logging.log4j.core.layout |
Log4j 2.0 Layout support.
|
Modifier and Type | Method and Description |
---|---|
static AsyncAppender |
AsyncAppender.createAppender(AppenderRef[] appenderRefs,
String errorRef,
String blocking,
String size,
String name,
String includeLocation,
Filter filter,
Configuration config,
String ignore)
Create an AsyncAppender.
|
static TLSSyslogAppender |
TLSSyslogAppender.createAppender(String host,
String portNum,
SSLConfiguration sslConfig,
String delay,
String immediateFail,
String name,
String immediateFlush,
String ignore,
String facility,
String id,
String ein,
String includeMDC,
String mdcId,
String mdcPrefix,
String eventPrefix,
String includeNL,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String format,
Filter filter,
Configuration config,
String charsetName,
String exceptionPattern,
LoggerFields[] loggerFields,
String advertise)
Create a SyslogAppender.
|
static FailoverAppender |
FailoverAppender.createAppender(String name,
String primary,
String[] failovers,
String retryIntervalString,
Configuration config,
Filter filter,
String ignore)
Create a Failover Appender.
|
static RandomAccessFileAppender |
RandomAccessFileAppender.createAppender(String fileName,
String append,
String name,
String immediateFlush,
String ignore,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
String advertiseURI,
Configuration config)
Create a File Appender.
|
static FileAppender |
FileAppender.createAppender(String fileName,
String append,
String locking,
String name,
String immediateFlush,
String ignore,
String bufferedIO,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
String advertiseURI,
Configuration config)
Create a File Appender.
|
static SocketAppender |
SocketAppender.createAppender(String host,
String portNum,
String protocol,
String delay,
String immediateFail,
String name,
String immediateFlush,
String ignore,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
Configuration config) |
static SyslogAppender |
SyslogAppender.createAppender(String host,
String portNum,
String protocol,
String delay,
String immediateFail,
String name,
String immediateFlush,
String ignore,
String facility,
String id,
String ein,
String includeMDC,
String mdcId,
String mdcPrefix,
String eventPrefix,
String includeNL,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String format,
Filter filter,
Configuration config,
String charsetName,
String exceptionPattern,
LoggerFields[] loggerFields,
String advertise)
Create a SyslogAppender.
|
static RollingFileAppender |
RollingFileAppender.createAppender(String fileName,
String filePattern,
String append,
String name,
String bufferedIO,
String immediateFlush,
TriggeringPolicy policy,
RolloverStrategy strategy,
Layout<? extends Serializable> layout,
Filter filter,
String ignore,
String advertise,
String advertiseURI,
Configuration config)
Create a RollingFileAppender.
|
static RollingRandomAccessFileAppender |
RollingRandomAccessFileAppender.createAppender(String fileName,
String filePattern,
String append,
String name,
String immediateFlush,
TriggeringPolicy policy,
RolloverStrategy strategy,
Layout<? extends Serializable> layout,
Filter filter,
String ignore,
String advertise,
String advertiseURI,
Configuration config)
Create a RollingRandomAccessFileAppender.
|
Modifier and Type | Method and Description |
---|---|
static ColumnConfig |
ColumnConfig.createColumnConfig(Configuration config,
String name,
String pattern,
String literalValue,
String eventTimestamp,
String unicode,
String clob)
Factory method for creating a column config within the plugin manager.
|
Modifier and Type | Method and Description |
---|---|
static RewriteAppender |
RewriteAppender.createAppender(String name,
String ignore,
AppenderRef[] appenderRefs,
Configuration config,
RewritePolicy rewritePolicy,
Filter filter)
Create a RewriteAppender.
|
static PropertiesRewritePolicy |
PropertiesRewritePolicy.createPolicy(Configuration config,
Property[] props)
The factory method to create the PropertiesRewritePolicy.
|
Modifier and Type | Method and Description |
---|---|
static DefaultRolloverStrategy |
DefaultRolloverStrategy.createStrategy(String max,
String min,
String fileIndex,
String compressionLevelStr,
Configuration config)
Create the DefaultRolloverStrategy.
|
Modifier and Type | Method and Description |
---|---|
static RoutingAppender |
RoutingAppender.createAppender(String name,
String ignore,
Routes routes,
Configuration config,
RewritePolicy rewritePolicy,
Filter filter)
Create a RoutingAppender.
|
Modifier and Type | Method and Description |
---|---|
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)
Factory method to create a LoggerConfig.
|
Modifier and Type | Method and Description |
---|---|
static LoggerConfig |
LoggerConfig.RootLogger.createLogger(String additivity,
String levelName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter) |
static LoggerConfig |
LoggerConfig.createLogger(String additivity,
String levelName,
String loggerName,
String includeLocation,
AppenderRef[] refs,
Property[] properties,
Configuration config,
Filter filter)
Factory method to create a LoggerConfig.
|
Modifier and Type | Method and Description |
---|---|
static StrLookup |
PropertiesPlugin.configureSubstitutor(Property[] properties,
Configuration config)
Create the Properties component.
|
Modifier and Type | Method and Description |
---|---|
static PatternLayout |
PatternLayout.createLayout(String pattern,
Configuration config,
RegexReplacement replace,
String charsetName,
String always)
Create a pattern layout.
|
static RFC5424Layout |
RFC5424Layout.createLayout(String facility,
String id,
String ein,
String includeMDC,
String mdcId,
String mdcPrefix,
String eventPrefix,
String includeNL,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String exceptionPattern,
String useTLSMessageFormat,
LoggerFields[] loggerFields,
Configuration config)
Create the RFC 5424 Layout.
|
Copyright © 1999-2014 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.