public interface PatternConverter
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY
Main plugin category for PatternConverter plugins.
|
Modifier and Type | Method and Description |
---|---|
void |
format(Object obj,
StringBuilder toAppendTo)
Formats an object into a string buffer.
|
String |
getName()
Returns the name of the converter.
|
String |
getStyleClass(Object e)
This method returns the CSS style class that should be applied to
the LoggingEvent passed as parameter, which can be null.
|
static final String CATEGORY
void format(Object obj, StringBuilder toAppendTo)
obj
- event to format, may not be null.toAppendTo
- string buffer to which the formatted event will be appended. May not be null.String getStyleClass(Object e)
e
- null values are acceptedCopyright © 1999-2020 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.