public final class LiteralPatternConverter extends LoggingEventPatternConverter
构造器和说明 |
---|
LiteralPatternConverter(java.lang.String literal)
Create a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
void |
format(LoggingEvent event,
java.lang.StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo)
Formats an object into a string buffer.
|
handlesThrowable
getName, getStyleClass
public LiteralPatternConverter(java.lang.String literal)
literal
- string literal.public void format(LoggingEvent event, java.lang.StringBuffer toAppendTo)
format
在类中 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(java.lang.Object obj, java.lang.StringBuffer toAppendTo)
format
在类中 LoggingEventPatternConverter
obj
- event to format, may not be null.toAppendTo
- string buffer to which the formatted event will be appended. May not be null.