From: Matthijs Kooijman Date: Tue, 5 May 2009 16:16:17 +0000 (+0200) Subject: rsyslog: Add (commented out) debug log. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fservers%2Fdrsnuggles.git;a=commitdiff_plain;h=baad277d55649e04d5320706ff752e52e36ff444 rsyslog: Add (commented out) debug log. This is so we can quickly enable full dumping of log messages later on. --- diff --git a/etc/rsyslog.conf b/etc/rsyslog.conf index d3cda8f..b1f88e2 100644 --- a/etc/rsyslog.conf +++ b/etc/rsyslog.conf @@ -69,6 +69,13 @@ $template LogFormat, "%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag% %syslogf # (hence the traditional format). *.* -/data/log/rsyslog/all.log;RSYSLOG_TraditionalFileFormat +# Debugging format. Based on RSYSLOG_DebugFormat, available in later versions +# of rsyslogd, with some variations. +$template DebugFormat,"Debug line with all properties:\nFROMHOST: '%FROMHOST%', HOSTNAME: '%HOSTNAME%', PRI: %PRI%,\nsyslogtag '%syslogtag%', programname: '%programname%', APP-NAME: '%APP-NAME%', PROCID: '%PROCID%', MSGID: '%MSGID%',\nTIMESTAMP: '%TIMESTAMP%', STRUCTURED-DATA: '%STRUCTURED-DATA%', syslogtag: '%syslogtag%'\nmsg: '%msg%'\nescaped msg: '%msg:::drop-cc%'\nrawmsg: '%rawmsg%'\n\n" +# Uncomment this to have detailed logging for debugging +#*.* -/data/log/rsyslog/debug.log;DebugFormat + + ####################### #### Local logging #### #######################