[Koha-bugs] [Bug 12952] Log koha actions to syslog too
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 18 04:08:28 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12952
--- Comment #2 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
Created attachment 31690
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31690&action=edit
Log koha actions to syslog too
* Added kohasite and syslog_facility to config
* syslog_facility is set to "user" and commented out for the fresh site
install
* If syslog_facility is enabled in config, log to syslog as <kohasite>
(value of kohasite config)
* /etc/rsyslog.d/99-<kohasite>.conf is created with filter instructions
to direct <kohasite> log entries to standard log dir
(/var/log/koha/<kohasite>) action.log; syslog daemons other than
rsyslog need to be configured (or not) to do the same, otherwise catch
all syslog log file is used
Testing:
1. t/Log.t has been amended, it shold run without errors
2. Enable (uncomment) syslog_facility iand set kohasite in koha-conf.xml
Perform an update action that triggers logging
Observe an entry in the syslog
If /etc/rsyslog.d/99-<kohasite>.conf (or similar) is present, the same
entry should be in the <site-log-dir>/action.log
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list