@Plugin(name="DatePatternConverter", category="Converter") public final class DatePatternConverter extends LogEventPatternConverter implements ArrayPatternConverter
LOGGERCATEGORY| Modifier and Type | Method and Description |
|---|---|
void |
format(Date date,
StringBuilder toAppendTo)
Append formatted date to string buffer.
|
void |
format(LogEvent event,
StringBuilder output)
Formats an event into a string buffer.
|
void |
format(Object obj,
StringBuilder output)
Formats an object into a string buffer.
|
void |
format(StringBuilder toAppendTo,
Object... objects)
Formats an array of Objects.
|
String |
getPattern()
Gets the pattern string describing this date format.
|
static DatePatternConverter |
newInstance(String[] options)
Obtains an instance of pattern converter.
|
handlesThrowablegetName, getStyleClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getStyleClasspublic static DatePatternConverter newInstance(String[] options)
options - options, may be null.public void format(Date date, StringBuilder toAppendTo)
date - datetoAppendTo - buffer to which formatted date is appended.public void format(LogEvent event, StringBuilder output)
format in class LogEventPatternConverterevent - 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(Object obj, StringBuilder output)
format in interface PatternConverterformat in class LogEventPatternConverterobj - 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(StringBuilder toAppendTo, Object... objects)
ArrayPatternConverterformat in interface ArrayPatternConvertertoAppendTo - The StringBuilder to add the content to.objects - The Object array.public String getPattern()
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.