public final class LiteralPatternConverter extends LoggingEventPatternConverter
Constructor and Description |
---|
LiteralPatternConverter(String literal)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
format(Object obj,
StringBuffer toAppendTo)
Formats an object into a string buffer.
|
handlesThrowable
getName, getStyleClass
public LiteralPatternConverter(String literal)
literal
- string literal.public void format(LoggingEvent event, StringBuffer toAppendTo)
format
in class LoggingEventPatternConverter
event
- event to format, may not be null.toAppendTo
- string buffer to which the formatted event will be appended. May not be null.public void format(Object obj, StringBuffer toAppendTo)
format
in class LoggingEventPatternConverter
obj
- event to format, may not be null.toAppendTo
- string buffer to which the formatted event will be appended. May not be null.Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.