This abstract layout takes care of all the date related options and formatting work. More...
Inherits log4cxx::Layout.
Inherited by TTCCLayout.
Public Member Functions | |
DateLayout (const LogString &dateLayoutOption) | |
virtual | ~DateLayout () |
virtual void | activateOptions (log4cxx::helpers::Pool &p) |
virtual void | setOption (const LogString &option, const LogString &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 |
This abstract layout takes care of all the date related options and formatting work.
DateLayout | ( | const LogString & | dateLayoutOption | ) |
virtual ~DateLayout | ( | ) | [virtual] |
virtual void activateOptions | ( | log4cxx::helpers::Pool & | p | ) | [virtual] |
void formatDate | ( | LogString & | s, | |
const spi::LoggingEventPtr & | event, | |||
log4cxx::helpers::Pool & | p | |||
) | const |
const LogString& getDateFormat | ( | ) | const [inline] |
Returns value of the DateFormat option.
void setDateFormat | ( | const LogString & | dateFormat1 | ) | [inline] |
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.
void setTimeZone | ( | const LogString & | timeZone | ) | [inline] |
The TimeZoneID option is a time zone ID string in the format expected by the locale
C++ standard class.
DateFormatPtr dateFormat [protected] |