Package | Description |
---|---|
org.apache.logging.log4j.core.appender.rewrite |
Apache Flume Appender.
|
org.apache.logging.log4j.core.filter |
Log4j 2 Filter support.
|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
org.apache.logging.log4j.core.util |
Log4j 2 helper classes.
|
Modifier and Type | Method and Description |
---|---|
static MapRewritePolicy |
MapRewritePolicy.createPolicy(String mode,
KeyValuePair[] pairs)
The factory method to create the MapRewritePolicy.
|
static LoggerNameLevelRewritePolicy |
LoggerNameLevelRewritePolicy.createPolicy(String loggerNamePrefix,
KeyValuePair[] levelPairs)
Creates a policy to rewrite levels for a given logger name.
|
Modifier and Type | Method and Description |
---|---|
static StructuredDataFilter |
StructuredDataFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch)
Creates the StructuredDataFilter.
|
static ThreadContextMapFilter |
ThreadContextMapFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch) |
static MapFilter |
MapFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch) |
static DynamicThresholdFilter |
DynamicThresholdFilter.createFilter(String key,
KeyValuePair[] pairs,
org.apache.logging.log4j.Level defaultThreshold,
Filter.Result onMatch,
Filter.Result onMismatch)
Creates a DynamicThresholdFilter.
|
Modifier and Type | Method and Description |
---|---|
KeyValuePair[] |
JsonLayout.Builder.getAdditionalFields() |
KeyValuePair[] |
GelfLayout.Builder.getAdditionalFields() |
Modifier and Type | Method and Description |
---|---|
static GelfLayout |
GelfLayout.createLayout(String host,
KeyValuePair[] additionalFields,
GelfLayout.CompressionType compressionType,
int compressionThreshold,
boolean includeStacktrace)
Deprecated.
Use
GelfLayout.newBuilder() instead |
static LoggerFields |
LoggerFields.createLoggerFields(KeyValuePair[] keyValuePairs,
String sdId,
String enterpriseId,
boolean discardIfAllFieldsAreEmpty)
Create a LoggerFields from KeyValuePairs.
|
B |
JsonLayout.Builder.setAdditionalFields(KeyValuePair[] additionalFields) |
B |
GelfLayout.Builder.setAdditionalFields(KeyValuePair[] additionalFields)
Additional fields to set on each log event.
|
Constructor and Description |
---|
GelfLayout(String host,
KeyValuePair[] additionalFields,
GelfLayout.CompressionType compressionType,
int compressionThreshold,
boolean includeStacktrace)
Deprecated.
Use
GelfLayout.newBuilder() instead |
Modifier and Type | Field and Description |
---|---|
static KeyValuePair[] |
KeyValuePair.EMPTY_ARRAY
The empty array.
|
Modifier and Type | Method and Description |
---|---|
KeyValuePair |
KeyValuePair.Builder.build() |
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.