|
Apache Log4cxx
Version 1.8.0
|
#include <cacheddateformat.h>
Public Types | |
| enum | { NO_MILLISECONDS = -2 , UNRECOGNIZED_MILLISECONDS = -1 } |
Public Member Functions | |
| CachedDateFormat (const helpers::DateFormatPtr &dateFormat, int expiration) | |
| Creates a new CachedDateFormat object. | |
| ~CachedDateFormat () | |
| void | format (LogString &toAppendTo, log4cxx_time_t tm, helpers::Pool &p) const override |
| Formats a Date into a date/time string. | |
| void | setTimeZone (const helpers::TimeZonePtr &zone) override |
| Set timezone. | |
| void | numberFormat (LogString &toAppendTo, int n, helpers::Pool &p) const override |
| Format an integer consistent with the format method. | |
| Public Member Functions inherited from log4cxx::helpers::DateFormat | |
| virtual | ~DateFormat () |
| Destructor. | |
| void | format (LogString &toAppendTo, log4cxx_time_t tm) const |
| virtual void | setTimeZone (const TimeZonePtr &zone) |
| Sets the time zone. | |
| void | numberFormat (LogString &toAppendTo, int n) const |
| Format an integer consistent with the format method. | |
| Public Member Functions inherited from log4cxx::helpers::Object | |
| 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 |
Static Public Member Functions | |
| static int | findMillisecondStart (log4cxx_time_t time, const LogString &formatted, const helpers::DateFormatPtr &formatter) |
| Finds start of millisecond field in formatted time. | |
| static int | findMillisecondStart (log4cxx_time_t time, const LogString &formatted, const log4cxx::helpers::DateFormatPtr &formatter, log4cxx::helpers::Pool &pool) |
| static int | getMaximumCacheValidity (const LogString &pattern) |
| Gets maximum cache validity for the specified SimpleDateTime conversion pattern. | |
Additional Inherited Members | |
| Protected Member Functions inherited from log4cxx::helpers::DateFormat | |
| DateFormat () | |
| Constructor. | |
| log4cxx::pattern::CachedDateFormat::CachedDateFormat | ( | const helpers::DateFormatPtr & | dateFormat, |
| int | expiration ) |
Creates a new CachedDateFormat object.
| dateFormat | Date format, may not be null. |
| expiration | maximum cached range in microseconds. If the dateFormat is known to be incompatible with the caching algorithm, use a value of 0 to totally disable caching or 1 to only use cache for duplicate requests. |
| log4cxx::pattern::CachedDateFormat::~CachedDateFormat | ( | ) |
|
static |
Finds start of millisecond field in formatted time.
| time | long time, must be integral number of seconds |
| formatted | String corresponding formatted string |
| formatter | DateFormat date format |
|
static |
|
overridevirtual |
Formats a Date into a date/time string.
| tm | the date/time to format. |
| toAppendTo | the string buffer to write to. |
Implements log4cxx::helpers::DateFormat.
|
static |
Gets maximum cache validity for the specified SimpleDateTime conversion pattern.
| pattern | conversion pattern, may not be null. |
|
overridevirtual |
Format an integer consistent with the format method.
| toAppendTo | string to which the numeric string is appended. |
| n | integer value. |
Reimplemented from log4cxx::helpers::DateFormat.
|
override |
Set timezone.
| zone | TimeZone new timezone |