public abstract class AbstractStyleNameConverter extends LogEventPatternConverter
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStyleNameConverter.Black
Black style pattern converter.
|
static class |
AbstractStyleNameConverter.Blue
Blue style pattern converter.
|
static class |
AbstractStyleNameConverter.Cyan
Cyan style pattern converter.
|
static class |
AbstractStyleNameConverter.Green
Green style pattern converter.
|
static class |
AbstractStyleNameConverter.Magenta
Magenta style pattern converter.
|
static class |
AbstractStyleNameConverter.Red
Red style pattern converter.
|
static class |
AbstractStyleNameConverter.White
White style pattern converter.
|
static class |
AbstractStyleNameConverter.Yellow
Yellow style pattern converter.
|
LOGGER
CATEGORY
Modifier | Constructor and Description |
---|---|
protected |
AbstractStyleNameConverter(String name,
List<PatternFormatter> formatters,
String styling)
Constructs the converter.
|
Modifier and Type | Method and Description |
---|---|
void |
format(LogEvent event,
StringBuilder toAppendTo)
Formats an event into a string buffer.
|
protected static <T extends AbstractStyleNameConverter> |
newInstance(Class<T> asnConverterClass,
String name,
Configuration config,
String[] options)
Gets an instance of the class (called via reflection).
|
format, handlesThrowable, isVariable
getName, getStyleClass
protected AbstractStyleNameConverter(String name, List<PatternFormatter> formatters, String styling)
formatters
- The PatternFormatters to generate the text to manipulate.styling
- The styling that should encapsulate the pattern.protected static <T extends AbstractStyleNameConverter> T newInstance(Class<T> asnConverterClass, String name, Configuration config, String[] options)
config
- The current Configuration.options
- The pattern options, may be null. If the first element is "short", only the first line of the
throwable will be formatted.public void format(LogEvent event, StringBuilder toAppendTo)
format
in class LogEventPatternConverter
event
- event to format, may not be null.toAppendTo
- string buffer to which the formatted event will be appended. May not be null.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.