Public Member Functions | Protected Attributes

DateLayout Class Reference

This abstract layout takes care of all the date related options and formatting work. More...

Inherits log4cxx::Layout.

Inherited by TTCCLayout.

List of all members.

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 LogStringgetDateFormat () 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 LogStringgetTimeZone () const
 Returns value of the TimeZone option.
void formatDate (LogString &s, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) const

Protected Attributes

DateFormatPtr dateFormat

Detailed Description

This abstract layout takes care of all the date related options and formatting work.


Constructor & Destructor Documentation

DateLayout ( const LogString dateLayoutOption  ) 
virtual ~DateLayout (  )  [virtual]

Member Function Documentation

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.

const LogString& getTimeZone (  )  const [inline]

Returns value of the TimeZone 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.

virtual void setOption ( const LogString option,
const LogString value 
) [virtual]
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.


Member Data Documentation

DateFormatPtr dateFormat [protected]

The documentation for this class was generated from the following file: