public abstract class LoggingEventPatternConverter extends PatternConverter
限定符 | 构造器和说明 |
---|---|
protected |
LoggingEventPatternConverter(java.lang.String name,
java.lang.String style)
Constructs an instance of LoggingEventPatternConverter.
|
限定符和类型 | 方法和说明 |
---|---|
abstract void |
format(LoggingEvent event,
java.lang.StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
format(java.lang.Object obj,
java.lang.StringBuffer output)
Formats an object into a string buffer.
|
boolean |
handlesThrowable()
Normally pattern converters are not meant to handle Exceptions although
few pattern converters might.
|
getName, getStyleClass
protected LoggingEventPatternConverter(java.lang.String name, java.lang.String style)
name
- name of converter.style
- CSS style for output.public abstract void format(LoggingEvent event, java.lang.StringBuffer toAppendTo)
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 output)
format
在类中 PatternConverter
obj
- event to format, may not be null.output
- string buffer to which the formatted event will be appended. May not be null.public boolean handlesThrowable()