Package org.elasticsearch.common.logging
Class ESMessageFieldConverter
java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
org.elasticsearch.common.logging.ESMessageFieldConverter
- All Implemented Interfaces:
org.apache.logging.log4j.core.pattern.PatternConverter
@Plugin(category="Converter",
name="ESMessageField")
public final class ESMessageFieldConverter
extends org.apache.logging.log4j.core.pattern.LogEventPatternConverter
Pattern converter to populate ESMessageField in a pattern.
It will only populate these if the event have message of type
ESLogMessage
.-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGER
Fields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
format(org.apache.logging.log4j.core.LogEvent event, StringBuilder toAppendTo)
static ESMessageFieldConverter
newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options)
Called by log4j2 to initialize this converter.Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
format, handlesThrowable, isVariable
Methods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass
-
Constructor Details
-
ESMessageFieldConverter
-
-
Method Details
-
newInstance
public static ESMessageFieldConverter newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options)Called by log4j2 to initialize this converter. -
format
- Specified by:
format
in classorg.apache.logging.log4j.core.pattern.LogEventPatternConverter
-