[Koha-bugs] [Bug 14167] Add Koha::Logger based on Log4perl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 26 15:59:31 CEST 2015


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39889|0                           |1
        is obsolete|                            |
  Attachment #39893|0                           |1
        is obsolete|                            |
  Attachment #39894|0                           |1
        is obsolete|                            |
  Attachment #39895|0                           |1
        is obsolete|                            |
  Attachment #40200|0                           |1
        is obsolete|                            |
  Attachment #40652|0                           |1
        is obsolete|                            |
  Attachment #40653|0                           |1
        is obsolete|                            |

--- Comment #36 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 40657
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40657&action=edit
Bug 14167 - Add Koha::Logger based on Log4perl

Koha needs a better logger, and it seems like the best solution would be
to take advantage of Log4perl which is already a fully featured logger.
We use Log4perl to selectively decide what statements should be logged,
and where they should go!

Test plan:
0) Install Log::Log4perl via packages or cpan
1) Apply this patch and the example renewal patch
2) Copy etc/log4perl.conf to your koha conf directory, edit the paths
   to match your current error logs
3) Edit your koha-conf file and add the
   <log4perl_conf>/path/to/log4perl.conf</log4perl_conf> line
4) Watch your intranet and opac error logs
5) Perform a renewal via the staff interface, note there is nothing new
   in the log file
7) Update the log4perl.conf, change the log level from WARN to TRACE
   for both the staff and opac sides
8) Perform a renewal via the staff interface, note the logged lines
9) Perform a renewal via the opac, note the logged lines

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Amended this patch: Moved the renewal stuff to a separate example patch.
And upgraded the DEBUG level to WARN in the log4perl config file.

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


More information about the Koha-bugs mailing list