Package org.elasticsearch.common.logging
Class TestThreadInfoPatternConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.pattern.AbstractPatternConverter
-
- org.apache.logging.log4j.core.pattern.LogEventPatternConverter
-
- org.elasticsearch.common.logging.TestThreadInfoPatternConverter
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.pattern.PatternConverter
@Plugin(category="Converter", name="TestInfoPatternConverter") public class TestThreadInfoPatternConverter extends org.apache.logging.log4j.core.pattern.LogEventPatternConverter
Converts%test_thread_info
in log4j patterns into information based on the loggin thread's name. If that thread is part of anESIntegTestCase
then this information is the node name.
-
-
Method Summary
Modifier and Type Method Description void
format(org.apache.logging.log4j.core.LogEvent event, java.lang.StringBuilder toAppendTo)
static TestThreadInfoPatternConverter
newInstance(java.lang.String[] options)
Called by log4j2 to initialize this converter.-
Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
format, handlesThrowable, isVariable
-
-
-
-
Method Detail
-
newInstance
public static TestThreadInfoPatternConverter newInstance(java.lang.String[] options)
Called by log4j2 to initialize this converter.
-
format
public void format(org.apache.logging.log4j.core.LogEvent event, java.lang.StringBuilder toAppendTo)
- Specified by:
format
in classorg.apache.logging.log4j.core.pattern.LogEventPatternConverter
-
-