[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 5 10:56:35 CEST 2015


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39890|0                           |1
        is obsolete|                            |
  Attachment #39892|0                           |1
        is obsolete|                            |

--- Comment #24 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 39893
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39893&action=edit
Bug 14167: [QA Follow-up] Adjust category handling in Koha::Logger

The first patch makes the category parameter mandatory.
This patch makes it optional, falling back to the current package. This is
the expected log4perl model. It would not be necessary to pass the class
name everywhere (check subclasses..)
It also adds a delimiter between the interface and the class name.

This allows you to add config lines like:

log4perl.logger.opac.C4.Auth = DEBUG, OPAC
log4perl.logger.intranet.C4.Circulation = TRACE, INTRANET

The first line would make the logger more sensitive to C4::Auth log
messages while staying at the WARN level for other messages, etc. The
second line makes the trace visible from the renewal example.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

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


More information about the Koha-bugs mailing list