public class RelativeTimePatternConverter extends LoggingEventPatternConverter
Modifier and Type | Class and Description |
---|---|
private static class |
RelativeTimePatternConverter.CachedTimestamp
Cached timestamp and formatted value.
|
Modifier and Type | Field and Description |
---|---|
private RelativeTimePatternConverter.CachedTimestamp |
lastTimestamp
Cached formatted timestamp.
|
Constructor and Description |
---|
RelativeTimePatternConverter()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
static RelativeTimePatternConverter |
newInstance(String[] options)
Obtains an instance of RelativeTimePatternConverter.
|
format, handlesThrowable
getName, getStyleClass
private RelativeTimePatternConverter.CachedTimestamp lastTimestamp
public RelativeTimePatternConverter()
public static RelativeTimePatternConverter newInstance(String[] options)
options
- options, currently ignored, may be null.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.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses