|
| | DatePatternConverter (const OptionsList &options) |
| | An object that can convert a date or timestamp to the format described by the conversion specifier in the first element in options. More...
|
| |
| | ~DatePatternConverter () |
| |
| void | format (const spi::LoggingEventPtr &event, LogString &toAppendTo, helpers::Pool &p) const override |
| | Append to output a textual version of the timestamp in event. More...
|
| |
| void | format (const helpers::ObjectPtr &obj, LogString &toAppendTo, helpers::Pool &p) const override |
| | Append to output a textual version of the date or timestamp in obj. More...
|
| |
| void | format (const helpers::DatePtr &date, LogString &toAppendTo) const |
| | Append to toAppendTo a textual version of date. More...
|
| |
| void | format (const helpers::DatePtr &date, LogString &toAppendTo, helpers::Pool &p) const |
| |
| void | format (const spi::LoggingEventPtr &event, LogString &toAppendTo) const |
| | Formats an event into a string buffer. More...
|
| |
| virtual void | format (const spi::LoggingEventPtr &event, LogString &toAppendTo, helpers::Pool &p) const=0 |
| |
| void | format (const helpers::ObjectPtr &obj, LogString &toAppendTo, helpers::Pool &p) const override |
| |
| void | format (const spi::LoggingEventPtr &event, LogString &toAppendTo) const |
| | Formats an event into a string buffer. More...
|
| |
| void | format (const helpers::ObjectPtr &obj, LogString &toAppendTo, helpers::Pool &p) const override |
| |
| virtual bool | handlesThrowable () const |
| | Normally pattern converters are not meant to handle Exceptions although few pattern converters might. More...
|
| |
| void | format (const helpers::ObjectPtr &obj, LogString &toAppendTo) const |
| | Formats an object into a string buffer. More...
|
| |
| virtual void | format (const helpers::ObjectPtr &obj, LogString &toAppendTo, helpers::Pool &p) const=0 |
| |
| void | format (const helpers::ObjectPtr &obj, LogString &toAppendTo) const |
| | Formats an object into a string buffer. More...
|
| |
| LogString | getName () const |
| | This method returns the name of the conversion pattern. More...
|
| |
| virtual LogString | getStyleClass (const helpers::ObjectPtr &e) const |
| | This method returns the CSS style class that should be applied to the LoggingEvent passed as parameter, which can be null. More...
|
| |
| const FormattingInfo & | getFormattingInfo () const |
| | Provides a minimum width, a maximum width and the alignment. More...
|
| |
| void | setFormattingInfo (const FormattingInfoPtr &newValue) |
| | Use newValue for the minimum width, a maximum width and the alignment. More...
|
| |
| virtual | ~Object () |
| |
| virtual const helpers::Class & | getClass () const =0 |
| |
| virtual bool | instanceof (const Class &clazz) const =0 |
| |
| virtual const void * | cast (const Class &clazz) const =0 |
| |
Convert and format a date or timestamp into a string.
| log4cxx::pattern::DatePatternConverter::DatePatternConverter |
( |
const OptionsList & |
options | ) |
|
An object that can convert a date or timestamp to the format described by the conversion specifier in the first element in options.
If the conversion specifier contains a % character, the date is formated using strftime.
Otherwise the conversion specifier must be a pattern compatible with java.text.SimpleDateFormat, "ABSOLUTE", "DATE" or "ISO8601". For example, "HH:mm:ss,SSS", "dd MMM yyyy HH:mm:ss,SSS" or "DATE".
ISO8601 format is assumed if the first element in options missing or empty.
If options has a second element, it is assumed to be a time zone specifier, for example, "GMT-6"