diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-03 11:06:46 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-03 11:06:46 +0000 |
commit | 83b91cb8940986b365d58b04fe633fe396ff5d6b (patch) | |
tree | 2fed11b7eb3e50170f2ef8556e216300a247db07 /template.c | |
parent | f500fbf50508c9c82d343a8ef6196ca25447402c (diff) | |
download | rsyslog-83b91cb8940986b365d58b04fe633fe396ff5d6b.tar.gz rsyslog-83b91cb8940986b365d58b04fe633fe396ff5d6b.tar.bz2 rsyslog-83b91cb8940986b365d58b04fe633fe396ff5d6b.zip |
adding sur5r's postgres module - many thanks for providing it! There are a
number of patches necessary to core modules, because we need a new
formatting function (date-pgsql).
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -424,6 +424,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe) */ if(!strcmp((char*)Buf, "date-mysql")) { pTpe->data.field.eDateFormat = tplFmtMySQLDate; + } else if(!strcmp((char*)Buf, "date-pgsql")) { + pTpe->data.field.eDateFormat = tplFmtPgSQLDate; } else if(!strcmp((char*)Buf, "date-rfc3164")) { pTpe->data.field.eDateFormat = tplFmtRFC3164Date; } else if(!strcmp((char*)Buf, "date-rfc3339")) { @@ -941,6 +943,9 @@ void tplPrintList(void) case tplFmtMySQLDate: dbgprintf("[Format as MySQL-Date] "); break; + case tplFmtPgSQLDate: + dbgprintf("[Format as PgSQL-Date] "); + break; case tplFmtRFC3164Date: dbgprintf("[Format as RFC3164-Date] "); break; |