public final class LevelPatternConverter extends LoggingEventPatternConverter
Modifier and Type | Field and Description |
---|---|
private static LevelPatternConverter |
INSTANCE
Singleton.
|
private static int |
TRACE_INT
Integer severity for Level.TRACE.
|
Modifier | Constructor and Description |
---|---|
private |
LevelPatternConverter()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
format(LoggingEvent event,
StringBuffer output)
Formats an event into a string buffer.
|
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 LevelPatternConverter |
newInstance(String[] options)
Obtains an instance of pattern converter.
|
format, handlesThrowable
getName
private static final int TRACE_INT
private static final LevelPatternConverter INSTANCE
private LevelPatternConverter()
public static LevelPatternConverter newInstance(String[] options)
options
- options, may be null.public void format(LoggingEvent event, StringBuffer output)
format
in class LoggingEventPatternConverter
event
- event to format, may not be null.output
- string buffer to which the formatted event will be appended. May not be null.public String getStyleClass(Object e)
getStyleClass
in class PatternConverter
e
- null values are acceptedWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses