Inherited by TTCCLayout.
Public Member Functions | |
DateLayout (const LogString &dateLayoutOption) | |
virtual | ~DateLayout () |
virtual void | activateOptions (log4cxx::helpers::Pool &p) |
Activate the options that were previously set with calls to option setters. | |
virtual void | setOption (const LogString &option, const LogString &value) |
Set option to value . | |
void | setDateFormat (const LogString &dateFormat1) |
The value of the DateFormat option should be either an argument to the constructor of helpers::DateFormat or one of the strings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601. | |
const LogString & | getDateFormat () const |
Returns value of the DateFormat option. | |
void | setTimeZone (const LogString &timeZone) |
The TimeZoneID option is a time zone ID string in the format expected by the locale C++ standard class. | |
const LogString & | getTimeZone () const |
Returns value of the TimeZone option. | |
void | formatDate (LogString &s, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) const |
Protected Attributes | |
DateFormatPtr | dateFormat |
|
|
|
|
|
Activate the options that were previously set with calls to option setters. This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set. For example, the FileAppender has the File and Append options both of which are ambigous until the other is also set. Implements OptionHandler. |
|
|
|
Returns value of the DateFormat option.
|
|
Returns value of the TimeZone option.
|
|
The value of the DateFormat option should be either an argument to the constructor of helpers::DateFormat or one of the strings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601.
|
|
Set The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called. Implements OptionHandler. |
|
The TimeZoneID option is a time zone ID string in the format expected by the
|
|
|