[Koha-bugs] [Bug 15253] Add Koha::Logger based logging for SIP2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 18 15:00:30 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15253

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 45824
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45824&action=edit
Bug 15253 - Add Koha::Logger based logging for SIP2

Now that we have Koha::Logger, we should use it in our SIP server. This
has the potential to make debugging SIP issue much easier. We should add
the userid for the sipser to the namespace so we can allow for separate
files per sip user if wanted.

Test Plan:
1) Apply this patch set
2) Add the following to your log4perl.conf:

log4perl.logger.sip = DEBUG, SIP
log4perl.appender.SIP           = Log::Dispatch::Syslog
log4perl.appender.SIP.min_level = debug
log4perl.appender.SIP.ident     = koha_sip
log4perl.appender.SIP.facility  = local6
log4perl.appender.SIP.layout=PatternLayout
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n

3) Restart your sip server
4) Tail your syslog, run some queries
5) Note you still get the same output messages as before, with the
   addition of the ip address and username ( if available ) prefixing
   the message.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list