summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-25 10:03:18 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-25 10:03:18 +0000
commit7720bcded1fe377b3c7defb0ea76dd9aa040c31d (patch)
tree853a5289b6c6bf37545867ce650e9c9243d40eec /template.c
parent86e92fc4c9608d0e64783fac40c849b3a48fed77 (diff)
downloadrsyslog-7720bcded1fe377b3c7defb0ea76dd9aa040c31d.tar.gz
rsyslog-7720bcded1fe377b3c7defb0ea76dd9aa040c31d.tar.xz
rsyslog-7720bcded1fe377b3c7defb0ea76dd9aa040c31d.zip
fixed the bug, template engine should now work
Diffstat (limited to 'template.c')
-rw-r--r--template.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/template.c b/template.c
index 1bb61157..200f3d01 100644
--- a/template.c
+++ b/template.c
@@ -192,6 +192,10 @@ static void doOptions(char **pp, struct templateEntry *pTpe)
*/
if(!strcmp(Buf, "date-mysql")) {
pTpe->data.field.eDateFormat = tplFmtMySQLDate;
+ } else if(!strcmp(Buf, "date-rfc3164")) {
+ pTpe->data.field.eDateFormat = tplFmtRFC3164Date;
+ } else if(!strcmp(Buf, "date-rfc3339")) {
+ pTpe->data.field.eDateFormat = tplFmtRFC3339Date;
} else if(!strcmp(Buf, "lowercase")) {
pTpe->data.field.eCaseConv = tplCaseConvLower;
} else if(!strcmp(Buf, "uppercase")) {
@@ -449,6 +453,12 @@ void tplPrintList(void)
case tplFmtMySQLDate:
dprintf("[Format as MySQL-Date] ");
break;
+ case tplFmtRFC3164Date:
+ dprintf("[Format as RFC3164-Date] ");
+ break;
+ case tplFmtRFC3339Date:
+ dprintf("[Format as RFC3339-Date] ");
+ break;
}
switch(pTpe->data.field.eCaseConv) {
case tplCaseConvNo: