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.kafka |
Classes and interfaces for Kafka appender support.
|
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.rolling.action |
Support classes for the Rolling File Appender.
|
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.
|
org.apache.logging.log4j.core.config.builder.api |
Configuration Builder API for programmatically configuring Log4j.
|
org.apache.logging.log4j.core.config.builder.impl |
Configuration Builder Implementation.
|
org.apache.logging.log4j.core.config.composite |
Support for composite configurations.
|
org.apache.logging.log4j.core.config.json |
Classes and interfaces supporting configuration of Log4j 2 with JSON.
|
org.apache.logging.log4j.core.config.plugins.util |
Utility and manager classes for Log4j 2 plugins.
|
org.apache.logging.log4j.core.config.plugins.visitors |
Visitor classes for extracting values from a Configuration or Node corresponding to a plugin annotation.
|
org.apache.logging.log4j.core.config.properties |
Configuration using Properties files.
|
org.apache.logging.log4j.core.config.xml |
Classes and interfaces supporting configuration of Log4j 2 with XML.
|
org.apache.logging.log4j.core.config.yaml |
Classes and interfaces supporting configuration of Log4j 2 with YAML.
|
org.apache.logging.log4j.core.filter |
Log4j 2 Filter support.
|
org.apache.logging.log4j.core.impl |
Log4j 2 private implementation classes.
|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
org.apache.logging.log4j.core.lookup |
Log4j 2 Lookups.
|
org.apache.logging.log4j.core.net |
Log4j 2 network support.
|
org.apache.logging.log4j.core.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
org.apache.logging.log4j.core.script |
Log4j 2 Script support.
|
org.apache.logging.log4j.core.util |
Log4j 2 helper classes.
|
Modifier and Type | Field and Description |
---|---|
Configuration |
Logger.PrivateConfig.config
The current Configuration associated with the LoggerConfig.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
LoggerContext.getConfiguration()
Returns the current Configuration.
|
Configuration |
LoggerContext.setConfiguration(Configuration config)
Sets the Configuration to be used.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
LoggerContext.setConfiguration(Configuration config)
Sets the Configuration to be used.
|
void |
LoggerContext.start(Configuration config)
Starts with a specific configuration.
|
protected void |
Logger.updateConfiguration(Configuration newConfig)
Associates this Logger with a new Configuration.
|
void |
LoggerContext.updateLoggers(Configuration config)
Causes all Logger to be updated against the specified Configuration.
|
Constructor and Description |
---|
PrivateConfig(Configuration config,
Logger logger) |
Modifier and Type | Field and Description |
---|---|
Configuration |
ConfigurationFactoryData.configuration
This field is public to follow the style of existing FactoryData classes.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
AbstractAppender.Builder.getConfiguration() |
Configuration |
ScriptAppenderSelector.Builder.getConfiguration() |
Configuration |
AppenderSet.Builder.getConfiguration() |
Configuration |
ConfigurationFactoryData.getConfiguration() |
Configuration |
HttpManager.getConfiguration() |
Modifier and Type | Method and Description |
---|---|
static AsyncAppender |
AsyncAppender.createAppender(AppenderRef[] appenderRefs,
String errorRef,
boolean blocking,
long shutdownTimeout,
int size,
String name,
boolean includeLocation,
Filter filter,
Configuration config,
boolean ignoreExceptions)
Deprecated.
use
AsyncAppender.Builder instead |
static SmtpAppender |
SmtpAppender.createAppender(Configuration config,
String name,
String to,
String cc,
String bcc,
String from,
String replyTo,
String subject,
String smtpProtocol,
String smtpHost,
String smtpPortStr,
String smtpUsername,
String smtpPassword,
String smtpDebug,
String bufferSizeStr,
Layout<? extends Serializable> layout,
Filter filter,
String ignore)
Deprecated.
Use
SmtpAppender.newBuilder() to create and configure a SmtpAppender.Builder instance. |
static SocketAppender |
SocketAppender.createAppender(String host,
int port,
Protocol protocol,
SslConfiguration sslConfig,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
String name,
boolean immediateFlush,
boolean ignoreExceptions,
Layout<? extends Serializable> layout,
Filter filter,
boolean advertise,
Configuration configuration)
Deprecated.
Deprecated in 2.7; use
SocketAppender.newBuilder() |
static <B extends SyslogAppender.Builder<B>> |
SyslogAppender.createAppender(String host,
int port,
String protocolStr,
SslConfiguration sslConfiguration,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
String name,
boolean immediateFlush,
boolean ignoreExceptions,
Facility facility,
String id,
int enterpriseNumber,
boolean includeMdc,
String mdcId,
String mdcPrefix,
String eventPrefix,
boolean newLine,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String format,
Filter filter,
Configuration configuration,
Charset charset,
String exceptionPattern,
LoggerFields[] loggerFields,
boolean advertise)
Deprecated.
|
static FailoverAppender |
FailoverAppender.createAppender(String name,
String primary,
String[] failovers,
String retryIntervalSeconds,
Configuration config,
Filter filter,
String ignore)
Create a Failover Appender.
|
static SocketAppender |
SocketAppender.createAppender(String host,
String portNum,
String protocolIn,
SslConfiguration sslConfig,
int connectTimeoutMillis,
String delayMillis,
String immediateFail,
String name,
String immediateFlush,
String ignore,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
Configuration config)
Deprecated.
Deprecated in 2.5; use
SocketAppender.newBuilder() |
static <B extends MemoryMappedFileAppender.Builder<B>> |
MemoryMappedFileAppender.createAppender(String fileName,
String append,
String name,
String immediateFlush,
String regionLengthStr,
String ignore,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
String advertiseURI,
Configuration config)
Deprecated.
|
static <B extends RandomAccessFileAppender.Builder<B>> |
RandomAccessFileAppender.createAppender(String fileName,
String append,
String name,
String immediateFlush,
String bufferSizeStr,
String ignore,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
String advertiseURI,
Configuration configuration)
Deprecated.
|
static <B extends FileAppender.Builder<B>> |
FileAppender.createAppender(String fileName,
String append,
String locking,
String name,
String immediateFlush,
String ignoreExceptions,
String bufferedIo,
String bufferSizeStr,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
String advertiseUri,
Configuration config)
Deprecated.
|
static <B extends RollingFileAppender.Builder<B>> |
RollingFileAppender.createAppender(String fileName,
String filePattern,
String append,
String name,
String bufferedIO,
String bufferSizeStr,
String immediateFlush,
TriggeringPolicy policy,
RolloverStrategy strategy,
Layout<? extends Serializable> layout,
Filter filter,
String ignore,
String advertise,
String advertiseUri,
Configuration config)
Deprecated.
|
static <B extends RollingRandomAccessFileAppender.Builder<B>> |
RollingRandomAccessFileAppender.createAppender(String fileName,
String filePattern,
String append,
String name,
String immediateFlush,
String bufferSizeStr,
TriggeringPolicy policy,
RolloverStrategy strategy,
Layout<? extends Serializable> layout,
Filter filter,
String ignoreExceptions,
String advertise,
String advertiseURI,
Configuration configuration)
Deprecated.
|
static FileManager |
FileManager.getFileManager(String fileName,
boolean append,
boolean locking,
boolean bufferedIo,
boolean createOnDemand,
String advertiseUri,
Layout<? extends Serializable> layout,
int bufferSize,
String filePermissions,
String fileOwner,
String fileGroup,
Configuration configuration)
Returns the FileManager.
|
static RandomAccessFileManager |
RandomAccessFileManager.getFileManager(String fileName,
boolean append,
boolean immediateFlush,
int bufferSize,
String advertiseURI,
Layout<? extends Serializable> layout,
Configuration configuration)
Returns the RandomAccessFileManager.
|
AsyncAppender.Builder |
AsyncAppender.Builder.setConfiguration(Configuration configuration) |
B |
AbstractAppender.Builder.setConfiguration(Configuration configuration) |
B |
AbstractAppender.Builder.withConfiguration(Configuration configuration)
Deprecated.
|
ScriptAppenderSelector.Builder |
ScriptAppenderSelector.Builder.withConfiguration(Configuration configuration) |
AppenderSet.Builder |
AppenderSet.Builder.withConfiguration(Configuration configuration) |
Constructor and Description |
---|
ConfigurationFactoryData(Configuration configuration) |
HttpManager(Configuration configuration,
LoggerContext loggerContext,
String name) |
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 |
---|---|
ColumnMapping.Builder |
ColumnMapping.Builder.setConfiguration(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
static ColumnConfig |
ColumnConfig.createColumnConfig(Configuration config,
String name,
String pattern,
String literalValue,
String eventTimestamp,
String unicode,
String clob)
Deprecated.
|
ColumnConfig.Builder |
ColumnConfig.Builder.setConfiguration(Configuration configuration)
The configuration object.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static RewriteAppender |
RewriteAppender.createAppender(String name,
String ignore,
AppenderRef[] appenderRefs,
Configuration config,
RewritePolicy rewritePolicy,
Filter filter)
Creates a RewriteAppender.
|
static PropertiesRewritePolicy |
PropertiesRewritePolicy.createPolicy(Configuration config,
Property[] props)
Creates a PropertiesRewritePolicy.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
DirectWriteRolloverStrategy.Builder.getConfig() |
Configuration |
DefaultRolloverStrategy.Builder.getConfig() |
Modifier and Type | Method and Description |
---|---|
static CronTriggeringPolicy |
CronTriggeringPolicy.createPolicy(Configuration configuration,
String evaluateOnStartup,
String schedule)
Creates a ScheduledTriggeringPolicy.
|
static DirectWriteRolloverStrategy |
DirectWriteRolloverStrategy.createStrategy(String maxFiles,
String compressionLevelStr,
Action[] customActions,
boolean stopCustomActionsOnError,
Configuration config)
Deprecated.
Since 2.9 Usage of Builder API is preferable
|
static DefaultRolloverStrategy |
DefaultRolloverStrategy.createStrategy(String max,
String min,
String fileIndex,
String compressionLevelStr,
Action[] customActions,
boolean stopCustomActionsOnError,
Configuration config)
Deprecated.
Since 2.9 Usage of Builder API is preferable
|
static RollingFileManager |
RollingFileManager.getFileManager(String fileName,
String pattern,
boolean append,
boolean bufferedIO,
TriggeringPolicy policy,
RolloverStrategy strategy,
String advertiseURI,
Layout<? extends Serializable> layout,
int bufferSize,
boolean immediateFlush,
boolean createOnDemand,
String filePermissions,
String fileOwner,
String fileGroup,
Configuration configuration)
Returns a RollingFileManager.
|
static RollingRandomAccessFileManager |
RollingRandomAccessFileManager.getRollingRandomAccessFileManager(String fileName,
String filePattern,
boolean isAppend,
boolean immediateFlush,
int bufferSize,
TriggeringPolicy policy,
RolloverStrategy strategy,
String advertiseURI,
Layout<? extends Serializable> layout,
String filePermissions,
String fileOwner,
String fileGroup,
Configuration configuration) |
DirectWriteRolloverStrategy.Builder |
DirectWriteRolloverStrategy.Builder.withConfig(Configuration config)
Defines configuration.
|
DefaultRolloverStrategy.Builder |
DefaultRolloverStrategy.Builder.withConfig(Configuration config)
Defines configuration.
|
Modifier and Type | Method and Description |
---|---|
static ScriptCondition |
ScriptCondition.createCondition(AbstractScript script,
Configuration configuration)
Creates the ScriptCondition.
|
static DeleteAction |
DeleteAction.createDeleteAction(String basePath,
boolean followLinks,
int maxDepth,
boolean testMode,
PathSorter sorterParameter,
PathCondition[] pathConditions,
ScriptCondition scriptCondition,
Configuration config)
Create a DeleteAction.
|
PosixViewAttributeAction.Builder |
PosixViewAttributeAction.Builder.withConfiguration(Configuration configuration)
Define required configuration, used to retrieve string substituter.
|
Constructor and Description |
---|
ScriptCondition(AbstractScript script,
Configuration configuration)
Constructs a new ScriptCondition.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
RoutingAppender.getConfiguration() |
Configuration |
Routes.Builder.getConfiguration() |
Modifier and Type | Method and Description |
---|---|
static RoutingAppender |
RoutingAppender.createAppender(String name,
String ignore,
Routes routes,
Configuration config,
RewritePolicy rewritePolicy,
PurgePolicy purgePolicy,
Filter filter)
Deprecated.
Since 2.7; use
RoutingAppender.newBuilder() |
static PurgePolicy |
IdlePurgePolicy.createPurgePolicy(String timeToLive,
String checkInterval,
String timeUnit,
Configuration configuration)
Create the PurgePolicy
|
Routes.Builder |
Routes.Builder.withConfiguration(Configuration configuration) |
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)
|
void |
AsyncLoggerContext.start(Configuration config) |
protected void |
AsyncLogger.updateConfiguration(Configuration newConfig) |
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 | Class and Description |
---|---|
class |
AbstractConfiguration
The base Configuration.
|
class |
DefaultConfiguration
The default configuration writes all output to the Console using the default logging level.
|
class |
NullConfiguration
This configuration defaults to no logging.
|
Modifier and Type | Method and Description |
---|---|
abstract Configuration |
ConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Configuration |
ConfigurationFactory.getConfiguration(LoggerContext loggerContext,
String name,
URI configLocation)
Returns the Configuration.
|
Configuration |
ConfigurationFactory.getConfiguration(LoggerContext loggerContext,
String name,
URI configLocation,
ClassLoader loader)
Returns the Configuration obtained using a given ClassLoader.
|
Configuration |
Reconfigurable.reconfigure() |
Modifier and Type | Method and Description |
---|---|
void |
LockingReliabilityStrategy.beforeStopConfiguration(Configuration configuration) |
void |
AwaitUnconditionallyReliabilityStrategy.beforeStopConfiguration(Configuration configuration) |
void |
ReliabilityStrategy.beforeStopConfiguration(Configuration configuration)
Called before the configuration is stopped.
|
void |
AwaitCompletionReliabilityStrategy.beforeStopConfiguration(Configuration configuration) |
void |
DefaultReliabilityStrategy.beforeStopConfiguration(Configuration configuration) |
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.
|
protected static boolean |
LoggerConfig.includeLocation(String includeLocationConfigValue,
Configuration configuration) |
static LoggerContext |
Configurator.initialize(ClassLoader loader,
Configuration configuration)
Initializes the Logging Context.
|
static LoggerContext |
Configurator.initialize(ClassLoader loader,
Configuration configuration,
Object externalContext)
Initializes the Logging Context.
|
static LoggerContext |
Configurator.initialize(Configuration configuration)
Initializes the Logging Context.
|
void |
ConfigurationAware.setConfiguration(Configuration configuration)
Injects the current Configuration into this object.
|
Constructor and Description |
---|
ConfigurationFileWatcher(Configuration configuration,
Reconfigurable reconfigurable,
List<ConfigurationListener> configurationListeners,
long lastModifiedMillis) |
HttpWatcher(Configuration configuration,
Reconfigurable reconfigurable,
List<ConfigurationListener> configurationListeners,
long lastModifiedMillis) |
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 | Interface and Description |
---|---|
interface |
ConfigurationBuilder<T extends Configuration>
Interface for building logging configurations.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationBuilder<? extends Configuration> |
ComponentBuilder.getBuilder()
Retrieves the ConfigurationBuilder.
|
Modifier and Type | Class and Description |
---|---|
class |
BuiltConfiguration
This is the general version of the Configuration created by the Builder.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeConfiguration
A Composite Configuration.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
CompositeConfiguration.reconfigure() |
Modifier and Type | Class and Description |
---|---|
class |
JsonConfiguration
Creates a Node hierarchy from a JSON file.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
JsonConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Configuration |
JsonConfiguration.reconfigure() |
Modifier and Type | Method and Description |
---|---|
PluginBuilder |
PluginBuilder.withConfiguration(Configuration configuration)
Specifies the Configuration to use for constructing the plugin instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
PluginNodeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Object |
PluginAttributeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Object |
PluginValueVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Object |
PluginConfigurationVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Object |
PluginElementVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Object |
PluginVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log)
Visits a Node to obtain a value for constructing a Plugin object.
|
Object |
PluginBuilderAttributeVisitor.visit(Configuration configuration,
Node node,
LogEvent event,
StringBuilder log) |
Modifier and Type | Class and Description |
---|---|
class |
PropertiesConfiguration
Configuration created from a properties file.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
PropertiesConfiguration.reconfigure() |
Modifier and Type | Class and Description |
---|---|
class |
XmlConfiguration
Creates a Node hierarchy from an XML file.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
XmlConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source)
Returns the Configuration.
|
Configuration |
XmlConfiguration.reconfigure() |
Modifier and Type | Class and Description |
---|---|
class |
YamlConfiguration |
Modifier and Type | Method and Description |
---|---|
Configuration |
YamlConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Configuration |
YamlConfiguration.reconfigure() |
Modifier and Type | Method and Description |
---|---|
static ScriptFilter |
ScriptFilter.createFilter(AbstractScript script,
Filter.Result match,
Filter.Result mismatch,
Configuration configuration)
Creates the ScriptFilter.
|
Modifier and Type | Method and Description |
---|---|
LoggerContext |
Log4jContextFactory.getContext(String fqcn,
ClassLoader loader,
Object externalContext,
boolean currentContext,
Configuration configuration)
Loads the LoggerContext using the ContextSelector using the provided Configuration
|
Modifier and Type | Field and Description |
---|---|
protected Configuration |
AbstractLayout.configuration
The current Configuration.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
AbstractLayout.getConfiguration() |
Configuration |
AbstractLayout.Builder.getConfiguration() |
Modifier and Type | Method and Description |
---|---|
static PatternLayout |
PatternLayout.createDefaultLayout(Configuration configuration)
Creates a PatternLayout using the default options and the given configuration.
|
static JsonLayout |
JsonLayout.createLayout(Configuration config,
boolean locationInfo,
boolean properties,
boolean propertiesAsList,
boolean complete,
boolean compact,
boolean eventEol,
String headerPattern,
String footerPattern,
Charset charset,
boolean includeStacktrace)
Deprecated.
Use
JsonLayout.newBuilder() instead |
static org.apache.logging.log4j.core.layout.AbstractJacksonLayout |
YamlLayout.createLayout(Configuration config,
boolean locationInfo,
boolean properties,
String headerPattern,
String footerPattern,
Charset charset,
boolean includeStacktrace)
Deprecated.
Use
YamlLayout.newBuilder() instead |
static CsvLogEventLayout |
CsvLogEventLayout.createLayout(Configuration config,
String format,
Character delimiter,
Character escape,
Character quote,
org.apache.commons.csv.QuoteMode quoteMode,
String nullString,
String recordSeparator,
Charset charset,
String header,
String footer) |
static AbstractCsvLayout |
CsvParameterLayout.createLayout(Configuration config,
String format,
Character delimiter,
Character escape,
Character quote,
org.apache.commons.csv.QuoteMode quoteMode,
String nullString,
String recordSeparator,
Charset charset,
String header,
String footer) |
static Rfc5424Layout |
Rfc5424Layout.createLayout(Facility facility,
String id,
int enterpriseNumber,
boolean includeMDC,
String mdcId,
String mdcPrefix,
String eventPrefix,
boolean newLine,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String exceptionPattern,
boolean useTlsMessageFormat,
LoggerFields[] loggerFields,
Configuration config)
Create the RFC 5424 Layout.
|
static PatternLayout |
PatternLayout.createLayout(String pattern,
PatternSelector patternSelector,
Configuration config,
RegexReplacement replace,
Charset charset,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
String headerPattern,
String footerPattern)
Deprecated.
Use
PatternLayout.newBuilder() instead. This will be private in a future version. |
static PatternParser |
PatternLayout.createPatternParser(Configuration config)
Creates a PatternParser.
|
static ScriptPatternSelector |
ScriptPatternSelector.createSelector(AbstractScript script,
PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration configuration)
Deprecated.
Use
ScriptPatternSelector.newBuilder() instead. |
static MarkerPatternSelector |
MarkerPatternSelector.createSelector(PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration configuration)
Deprecated.
Use
MarkerPatternSelector.newBuilder() instead. |
static AbstractStringLayout.Serializer |
PatternLayout.createSerializer(Configuration configuration,
RegexReplacement replace,
String pattern,
String defaultPattern,
PatternSelector patternSelector,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi)
Deprecated.
Use
PatternLayout.newSerializerBuilder() instead. |
ScriptPatternSelector.Builder |
ScriptPatternSelector.Builder.setConfiguration(Configuration config) |
MarkerPatternSelector.Builder |
MarkerPatternSelector.Builder.setConfiguration(Configuration configuration) |
PatternLayout.SerializerBuilder |
PatternLayout.SerializerBuilder.setConfiguration(Configuration configuration) |
B |
AbstractLayout.Builder.setConfiguration(Configuration configuration) |
PatternLayout.Builder |
PatternLayout.Builder.withConfiguration(Configuration configuration) |
Constructor and Description |
---|
AbstractCsvLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
AbstractLayout(Configuration configuration,
byte[] header,
byte[] footer)
Constructs a layout with an optional header and footer.
|
AbstractStringLayout(Configuration config,
Charset aCharset,
AbstractStringLayout.Serializer headerSerializer,
AbstractStringLayout.Serializer footerSerializer)
Builds a new layout.
|
CsvLogEventLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
CsvParameterLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
JsonLayout(Configuration config,
boolean locationInfo,
boolean properties,
boolean encodeThreadContextAsList,
boolean complete,
boolean compact,
boolean eventEol,
String endOfLine,
String headerPattern,
String footerPattern,
Charset charset,
boolean includeStacktrace)
Deprecated.
Use
JsonLayout.newBuilder() instead |
MarkerPatternSelector(PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration config)
Deprecated.
Use
MarkerPatternSelector.newBuilder() instead. This will be private in a future version. |
MessageLayout(Configuration configuration,
byte[] header,
byte[] footer) |
ScriptPatternSelector(AbstractScript script,
PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean disableAnsi,
boolean noConsoleNoAnsi,
Configuration config)
Deprecated.
Use
ScriptPatternSelector.newBuilder() instead. This will be private in a future version. |
YamlLayout(Configuration config,
boolean locationInfo,
boolean properties,
boolean complete,
boolean compact,
boolean eventEol,
String headerPattern,
String footerPattern,
Charset charset,
boolean includeStacktrace)
Deprecated.
Use
YamlLayout.newBuilder() instead |
Modifier and Type | Field and Description |
---|---|
protected Configuration |
AbstractConfigurationAwareLookup.configuration |
Modifier and Type | Method and Description |
---|---|
void |
AbstractConfigurationAwareLookup.setConfiguration(Configuration configuration) |
void |
StrSubstitutor.setConfiguration(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
static SmtpManager |
SmtpManager.getSmtpManager(Configuration config,
String to,
String cc,
String bcc,
String from,
String replyTo,
String subject,
String protocol,
String host,
int port,
String username,
String password,
boolean isDebug,
String filterName,
int numElements,
SslConfiguration sslConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected static <T extends AbstractStyleNameConverter> |
AbstractStyleNameConverter.newInstance(Class<T> asnConverterClass,
String name,
Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Black |
AbstractStyleNameConverter.Black.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Blue |
AbstractStyleNameConverter.Blue.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Cyan |
AbstractStyleNameConverter.Cyan.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Green |
AbstractStyleNameConverter.Green.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Magenta |
AbstractStyleNameConverter.Magenta.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Red |
AbstractStyleNameConverter.Red.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.White |
AbstractStyleNameConverter.White.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static AbstractStyleNameConverter.Yellow |
AbstractStyleNameConverter.Yellow.newInstance(Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
static EqualsIgnoreCaseReplacementConverter |
EqualsIgnoreCaseReplacementConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static VariablesNotEmptyReplacementConverter |
VariablesNotEmptyReplacementConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static RootThrowablePatternConverter |
RootThrowablePatternConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static StyleConverter |
StyleConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static ThrowablePatternConverter |
ThrowablePatternConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static HighlightConverter |
HighlightConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static MaxLengthConverter |
MaxLengthConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static EqualsReplacementConverter |
EqualsReplacementConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static EncodingPatternConverter |
EncodingPatternConverter.newInstance(Configuration config,
String[] options)
Creates an EncodingPatternConverter using a pattern string and an optional escape format.
|
static RegexReplacementConverter |
RegexReplacementConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
static MessagePatternConverter |
MessagePatternConverter.newInstance(Configuration config,
String[] options)
Obtains an instance of pattern converter.
|
static ExtendedThrowablePatternConverter |
ExtendedThrowablePatternConverter.newInstance(Configuration config,
String[] options)
Gets an instance of the class.
|
Constructor and Description |
---|
LiteralPatternConverter(Configuration config,
String literal,
boolean convertBackslashes)
Create a new instance.
|
PatternParser(Configuration config,
String converterKey,
Class<?> expected)
Constructor.
|
PatternParser(Configuration config,
String converterKey,
Class<?> expectedClass,
Class<?> filterClass)
Constructor.
|
ThrowablePatternConverter(String name,
String style,
String[] options,
Configuration config)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ScriptRef |
ScriptRef.createReference(String name,
Configuration configuration) |
Constructor and Description |
---|
ScriptManager(Configuration configuration,
WatchManager watchManager) |
Modifier and Type | Method and Description |
---|---|
Configuration |
AbstractWatcher.getConfiguration() |
Modifier and Type | Method and Description |
---|---|
static <T extends Watcher> |
WatcherFactory.instantiate(String name,
Class<T> clazz,
Configuration configuration,
Reconfigurable reconfigurable,
List<ConfigurationListener> listeners,
long lastModifiedMillis) |
Watcher |
WatcherFactory.newWatcher(Source source,
Configuration configuration,
Reconfigurable reconfigurable,
List<ConfigurationListener> configurationListeners,
long lastModifiedMillis) |
Constructor and Description |
---|
AbstractWatcher(Configuration configuration,
Reconfigurable reconfigurable,
List<ConfigurationListener> configurationListeners) |
WrappedFileWatcher(FileWatcher watcher,
Configuration configuration,
Reconfigurable reconfigurable,
List<ConfigurationListener> configurationListeners,
long lastModifiedMillis) |
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.