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 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 StructuredDataFilter |
StructuredDataFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch)
Create the StructuredDataFilter.
|
static DynamicThresholdFilter |
DynamicThresholdFilter.createFilter(String key,
KeyValuePair[] pairs,
Level defaultThreshold,
Filter.Result onMatch,
Filter.Result onMismatch)
Creates a DynamicThresholdFilter.
|
Modifier and Type | Method and Description |
---|---|
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 |
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 | Method and Description |
---|---|
KeyValuePair |
KeyValuePair.Builder.build() |
Copyright © 1999-2017. 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.