diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-12-08 09:31:30 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-12-08 09:31:30 +0000 |
commit | ba69aa639557cc57c6a07324567644eef2559e3b (patch) | |
tree | 2d57a543064341feeb62a72240dd150bcc3d080f /template.c | |
parent | b963b1c275a53aa250c0362d015105ba953b3b87 (diff) | |
download | rsyslog-ba69aa639557cc57c6a07324567644eef2559e3b.tar.gz rsyslog-ba69aa639557cc57c6a07324567644eef2559e3b.tar.xz rsyslog-ba69aa639557cc57c6a07324567644eef2559e3b.zip |
property option drop-last-lf added; some doc in test.conf
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -207,6 +207,10 @@ static void doOptions(char **pp, struct templateEntry *pTpe) pTpe->data.field.eCaseConv = tplCaseConvLower; } else if(!strcmp(Buf, "uppercase")) { pTpe->data.field.eCaseConv = tplCaseConvUpper; + } else if(!strcmp(Buf, "escape-cc")) { + pTpe->data.field.options.bEscapeCC = 1; + } else if(!strcmp(Buf, "drop-last-lf")) { + pTpe->data.field.options.bDropLastLF = 1; } else { dprintf("Invalid field option '%s' specified - ignored.\n", Buf); } @@ -488,6 +492,12 @@ void tplPrintList(void) dprintf("[Converted to Upper Case] "); break; } + if(pTpe->data.field.options.bEscapeCC) { + dprintf("[escape control-characters] "); + } + if(pTpe->data.field.options.bDropLastLF) { + dprintf("[drop last LF in msg] "); + } if(pTpe->data.field.iFromPos != 0 || pTpe->data.field.iToPos != 0) { dprintf("[substring, from character %d to %d] ", |