diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-11-30 13:45:41 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-11-30 13:45:41 -0800 |
commit | 95a207ac94980b02ef3ea5d58e697089955ff9b5 (patch) | |
tree | 6cae416db70ad7e9467a65227506786a00994085 /template.h | |
parent | 9859818eccb27a330537258d9149c7c5f32292f6 (diff) | |
download | rsyslog-v3-stable-kaz.tar.gz rsyslog-v3-stable-kaz.tar.bz2 rsyslog-v3-stable-kaz.zip |
New feature: date-strftime().HEADv3-stable-kaz
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -48,7 +48,7 @@ struct template { enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 }; enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1, tplFmtRFC3164Date = 2, tplFmtRFC3339Date = 3, tplFmtPgSQLDate = 4, - tplFmtSecFrac = 5}; + tplFmtSecFrac = 5, tplFmtStrftime = 6}; enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 }; #include "msg.h" @@ -88,6 +88,7 @@ struct templateEntry { int field_expand; /* use multiple instances of the field delimiter as a single one? */ enum tplFormatTypes eDateFormat; + char *strftime_fmt; /* for the tplFormatStrftime eDateFormat */ enum tplFormatCaseConvTypes eCaseConv; struct { /* bit fields! */ unsigned bDropCC: 1; /* drop control characters? */ |