diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-22 10:08:43 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-22 10:08:43 +0100 |
commit | ae7b78cdb27d0477c59252808d535f0beb4c541c (patch) | |
tree | aa264ea2fe2cbcd4c49f27f61a082d75a40a16e9 /plugins/imklog/imklog.c | |
parent | 84a5d7b138fd6366cf2964585f330e663b96d10e (diff) | |
download | rsyslog-ae7b78cdb27d0477c59252808d535f0beb4c541c.tar.gz rsyslog-ae7b78cdb27d0477c59252808d535f0beb4c541c.tar.bz2 rsyslog-ae7b78cdb27d0477c59252808d535f0beb4c541c.zip |
imklog: add new config params to module() parameter set
This is based on Marius Tomaschewski's set of patches, mostly
just applied manually (as I need to mangle with the merge).
Diffstat (limited to 'plugins/imklog/imklog.c')
-rw-r--r-- | plugins/imklog/imklog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c index 7a1078f8..a24fc63b 100644 --- a/plugins/imklog/imklog.c +++ b/plugins/imklog/imklog.c @@ -94,6 +94,8 @@ static struct cnfparamdescr modpdescr[] = { { "logpath", eCmdHdlrGetWord, 0 }, { "permitnonkernelfacility", eCmdHdlrBinary, 0 }, { "consoleloglevel", eCmdHdlrInt, 0 }, + { "parsekerneltimestamp", eCmdHdlrBinary, 0 }, + { "keepkerneltimestamp", eCmdHdlrBinary, 0 }, { "internalmsgfacility", eCmdHdlrFacility, 0 } }; static struct cnfparamblk modpblk = @@ -323,6 +325,10 @@ CODESTARTsetModCnf loadModConf->pszPath = (uchar*)es_str2cstr(pvals[i].val.d.estr, NULL); } else if(!strcmp(modpblk.descr[i].name, "permitnonkernelfacility")) { loadModConf->bPermitNonKernel = (int) pvals[i].val.d.n; + } else if(!strcmp(modpblk.descr[i].name, "parsekerneltimestamp")) { + loadModConf->bParseKernelStamp = (int) pvals[i].val.d.n; + } else if(!strcmp(modpblk.descr[i].name, "keepkerneltimestamp")) { + loadModConf->bKeepKernelStamp = (int) pvals[i].val.d.n; } else if(!strcmp(modpblk.descr[i].name, "consoleloglevel")) { loadModConf->console_log_level= (int) pvals[i].val.d.n; } else if(!strcmp(modpblk.descr[i].name, "internalmsgfacility")) { |