Uses of Class
org.apache.logging.log4j.core.util.KeyValuePair
-
Packages that use KeyValuePair Package Description org.apache.logging.log4j.core.appender.nosql The NoSQL Appender supports writing log events to NoSQL databases.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. -
-
Uses of KeyValuePair in org.apache.logging.log4j.core.appender.nosql
Fields in org.apache.logging.log4j.core.appender.nosql declared as KeyValuePair Modifier and Type Field Description private KeyValuePair[]
NoSqlAppender.Builder. additionalFields
private KeyValuePair[]
NoSqlDatabaseManager. additionalFields
private KeyValuePair[]
NoSqlDatabaseManager.FactoryData. additionalFields
Methods in org.apache.logging.log4j.core.appender.nosql with parameters of type KeyValuePair Modifier and Type Method Description static NoSqlDatabaseManager<?>
NoSqlDatabaseManager. getNoSqlDatabaseManager(java.lang.String name, int bufferSize, NoSqlProvider<?> provider, KeyValuePair[] additionalFields, Configuration configuration)
Creates a NoSQL manager for use within theNoSqlAppender
, or returns a suitable one if it already exists.Constructors in org.apache.logging.log4j.core.appender.nosql with parameters of type KeyValuePair Constructor Description FactoryData(Configuration configuration, int bufferSize, NoSqlProvider<?> provider, KeyValuePair[] additionalFields)
NoSqlDatabaseManager(java.lang.String name, int bufferSize, NoSqlProvider<NoSqlConnection<W,? extends NoSqlObject<W>>> provider, KeyValuePair[] additionalFields, Configuration configuration)
-
Uses of KeyValuePair in org.apache.logging.log4j.core.appender.rewrite
Methods in org.apache.logging.log4j.core.appender.rewrite with parameters of type KeyValuePair Modifier and Type Method Description static LoggerNameLevelRewritePolicy
LoggerNameLevelRewritePolicy. createPolicy(java.lang.String loggerNamePrefix, KeyValuePair[] levelPairs)
Creates a policy to rewrite levels for a given logger name.static MapRewritePolicy
MapRewritePolicy. createPolicy(java.lang.String mode, KeyValuePair[] pairs)
The factory method to create the MapRewritePolicy. -
Uses of KeyValuePair in org.apache.logging.log4j.core.filter
Methods in org.apache.logging.log4j.core.filter with parameters of type KeyValuePair Modifier and Type Method Description static DynamicThresholdFilter
DynamicThresholdFilter. createFilter(java.lang.String key, KeyValuePair[] pairs, Level defaultThreshold, Filter.Result onMatch, Filter.Result onMismatch)
Creates a DynamicThresholdFilter.static MapFilter
MapFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)
static StructuredDataFilter
StructuredDataFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)
Creates the StructuredDataFilter.static ThreadContextMapFilter
ThreadContextMapFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)
-
Uses of KeyValuePair in org.apache.logging.log4j.core.layout
Fields in org.apache.logging.log4j.core.layout declared as KeyValuePair Modifier and Type Field Description private KeyValuePair[]
AbstractJacksonLayout.Builder. additionalFields
private KeyValuePair[]
GelfLayout. additionalFields
private KeyValuePair[]
GelfLayout.Builder. additionalFields
private KeyValuePair[]
JsonLayout.Builder. additionalFields
Methods in org.apache.logging.log4j.core.layout that return KeyValuePair Modifier and Type Method Description KeyValuePair[]
AbstractJacksonLayout.Builder. getAdditionalFields()
KeyValuePair[]
GelfLayout.Builder. getAdditionalFields()
KeyValuePair[]
JsonLayout.Builder. getAdditionalFields()
Methods in org.apache.logging.log4j.core.layout with parameters of type KeyValuePair Modifier and Type Method Description static GelfLayout
GelfLayout. createLayout(java.lang.String host, KeyValuePair[] additionalFields, GelfLayout.CompressionType compressionType, int compressionThreshold, boolean includeStacktrace)
Deprecated.UseGelfLayout.newBuilder()
insteadstatic LoggerFields
LoggerFields. createLoggerFields(KeyValuePair[] keyValuePairs, java.lang.String sdId, java.lang.String enterpriseId, boolean discardIfAllFieldsAreEmpty)
Create a LoggerFields from KeyValuePairs.private static AbstractJacksonLayout.ResolvableKeyValuePair[]
AbstractJacksonLayout. prepareAdditionalFields(Configuration config, KeyValuePair[] additionalFields)
B
AbstractJacksonLayout.Builder. setAdditionalFields(KeyValuePair[] additionalFields)
Additional fields to set on each log event.B
GelfLayout.Builder. setAdditionalFields(KeyValuePair[] additionalFields)
Additional fields to set on each log event.B
JsonLayout.Builder. setAdditionalFields(KeyValuePair[] additionalFields)
Constructors in org.apache.logging.log4j.core.layout with parameters of type KeyValuePair Constructor Description AbstractJacksonLayout(Configuration config, com.fasterxml.jackson.databind.ObjectWriter objectWriter, java.nio.charset.Charset charset, boolean compact, boolean complete, boolean eventEol, java.lang.String endOfLine, AbstractStringLayout.Serializer headerSerializer, AbstractStringLayout.Serializer footerSerializer, boolean includeNullDelimiter, KeyValuePair[] additionalFields)
GelfLayout(java.lang.String host, KeyValuePair[] additionalFields, GelfLayout.CompressionType compressionType, int compressionThreshold, boolean includeStacktrace)
Deprecated.UseGelfLayout.newBuilder()
insteadGelfLayout(Configuration config, java.lang.String host, KeyValuePair[] additionalFields, GelfLayout.CompressionType compressionType, int compressionThreshold, boolean includeStacktrace, boolean includeThreadContext, boolean includeMapMessage, boolean includeNullDelimiter, boolean includeNewLineDelimiter, boolean omitEmptyFields, ListChecker mdcChecker, ListChecker mapChecker, PatternLayout patternLayout, java.lang.String mdcPrefix, java.lang.String mapPrefix)
JsonLayout(Configuration config, boolean locationInfo, boolean properties, boolean encodeThreadContextAsList, boolean complete, boolean compact, boolean eventEol, java.lang.String endOfLine, java.lang.String headerPattern, java.lang.String footerPattern, java.nio.charset.Charset charset, boolean includeStacktrace, boolean stacktraceAsString, boolean includeNullDelimiter, boolean includeTimeMillis, KeyValuePair[] additionalFields, boolean objectMessageAsJsonObject)
ResolvableKeyValuePair(KeyValuePair pair)
XmlLayout(Configuration config, boolean locationInfo, boolean properties, boolean complete, boolean compact, java.lang.String endOfLine, java.nio.charset.Charset charset, boolean includeStacktrace, boolean stacktraceAsString, boolean includeNullDelimiter, boolean includeTimeMillis, KeyValuePair[] additionalFields)
YamlLayout(Configuration config, boolean locationInfo, boolean properties, boolean complete, boolean compact, boolean eventEol, java.lang.String endOfLine, java.lang.String headerPattern, java.lang.String footerPattern, java.nio.charset.Charset charset, boolean includeStacktrace, boolean stacktraceAsString, boolean includeNullDelimiter, boolean includeTimeMillis, KeyValuePair[] additionalFields)
-
Uses of KeyValuePair in org.apache.logging.log4j.core.util
Fields in org.apache.logging.log4j.core.util declared as KeyValuePair Modifier and Type Field Description static KeyValuePair[]
KeyValuePair. EMPTY_ARRAY
The empty array.Methods in org.apache.logging.log4j.core.util that return KeyValuePair Modifier and Type Method Description KeyValuePair
KeyValuePair.Builder. build()
-