diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 10:52:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 10:52:47 +0000 |
commit | 36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5 (patch) | |
tree | 0dc4db7ed2fd7ffa5efba0c4ee246088a91ea2ab /omfile.c | |
parent | a3192ac18ed9df7d95d0c8d5795994e867c85eca (diff) | |
download | rsyslog-36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5.tar.gz rsyslog-36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5.tar.xz rsyslog-36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5.zip |
added new function dbgPrintInstInfo() to omod interface
Diffstat (limited to 'omfile.c')
-rw-r--r-- | omfile.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -61,6 +61,30 @@ CODESTARTisCompatibleWithFeature ENDisCompatibleWithFeature +BEGINdbgPrintInstInfo +CODESTARTdbgPrintInstInfo + if(f->f_un.f_file.bDynamicName) { + printf("[dynamic]\n\ttemplate='%s'\n" + "\tfile cache size=%d\n" + "\tcreate directories: %s\n" + "\tfile owner %d, group %d\n" + "\tdirectory owner %d, group %d\n" + "\tfail if owner/group can not be set: %s\n", + f->f_un.f_file.f_fname, + f->f_un.f_file.iDynaFileCacheSize, + f->f_un.f_file.bCreateDirs ? "yes" : "no", + f->f_un.f_file.fileUID, f->f_un.f_file.fileGID, + f->f_un.f_file.dirUID, f->f_un.f_file.dirGID, + f->f_un.f_file.bFailOnChown ? "yes" : "no" + ); + } else { /* regular file */ + printf("%s", f->f_un.f_file.f_fname); + if (f->f_file == -1) + printf(" (unused)"); + } +ENDdbgPrintInstInfo + + /* Helper to cfline(). Parses a output channel name up until the first * comma and then looks for the template specifier. Tries * to find that template. Maps the output channel to the |