[Koha-bugs] [Bug 13413] Koha::Log - an attempt to have sane logging in Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 2 02:38:51 CET 2015


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

--- Comment #14 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
(In reply to Jonathan Druart from comment #13)
> Did you read the discussion on bug 8190? There are a lot of ideas on it.
> 
> The way to use it is:
> 
>   my $logger = C4::Context->logger();
>   $logger->info("OPAC: Search for $query");

Yes, and that is precisely what I find inflexible. One size fits all is
offered. My approach was use it where/when you need it the way you need it. Log
to file/syslog/email/wherever depending on your needs. So the answer is - you
don't. Eg you configure it in the psgi script, or in a cron job. Or in a
module, if you need something special.

My initial pains were SIP and some cron jobs.

I do understand that majority may prefer having it already there in context
with some less flexibility, in which case we'll pick the other one and go with
that.

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


More information about the Koha-bugs mailing list