public final class DatePatternConverter extends LoggingEventPatternConverter
限定符和类型 | 方法和说明 |
---|---|
void |
format(java.util.Date date,
java.lang.StringBuffer toAppendTo)
Append formatted date to string buffer.
|
void |
format(LoggingEvent event,
java.lang.StringBuffer output)
Formats an event into a string buffer.
|
void |
format(java.lang.Object obj,
java.lang.StringBuffer output)
Formats an object into a string buffer.
|
static DatePatternConverter |
newInstance(java.lang.String[] options)
Obtains an instance of pattern converter.
|
handlesThrowable
getName, getStyleClass
public static DatePatternConverter newInstance(java.lang.String[] options)
options
- options, may be null.public void format(LoggingEvent event, java.lang.StringBuffer output)
format
在类中 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 void format(java.lang.Object obj, java.lang.StringBuffer output)
format
在类中 LoggingEventPatternConverter
obj
- event to format, may not be null.output
- string buffer to which the formatted event will be appended. May not be null.public void format(java.util.Date date, java.lang.StringBuffer toAppendTo)
date
- datetoAppendTo
- buffer to which formatted date is appended.