[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
Thu Feb 19 12:28:16 CET 2015


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

--- Comment #13 from Jonathan Druart <jonathan.druart at biblibre.com> ---
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");

You can have a look at the tests for more information.
All the job is mainly done in the constructor (Koha::Utils::Logger->new) and
the write method.
And a syspref controls the log level.

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


More information about the Koha-bugs mailing list