Log4g Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Log4gDateLayout; Log4gDateLayoutClass; enum Log4gDateLayoutType; void log4g_date_layout_date_format (Log4gLayout *base
,GString *string
,Log4gLoggingEvent *event
);
This is an abstract layout class that takes care of all date related options and formatting. This class understands date formats understood by strftime(3).
Date layouts accept two properties:
date-format
time-zone
The date-format property set the strftime(3) conversion pattern that will be used to format the date.
The time-zone property can be used to explicitly set the timezone. The
default is NULL
.
typedef struct { } Log4gDateLayout;
The Log4gDateLayout structure does not have any public members.
typedef struct { } Log4gDateLayoutClass;
The Log4gDateLayoutClass structure does not have any public members.
typedef enum { INVALID_DATE_FORMAT = 0, RELATIVE_TIME_DATE_FORMAT, MAX_DATE_FORMAT } Log4gDateLayoutType;
void log4g_date_layout_date_format (Log4gLayout *base
,GString *string
,Log4gLoggingEvent *event
);
Format a date layout for a log event info a buffer.
|
A date format object. |
|
The buffer in which to layout the date. |
|
The log event to get the date from. |
Since 0.1