[Koha-bugs] [Bug 8190] Add a logging module to Koha, that can report log message to staff interface (for developer use)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 12 13:38:09 CEST 2013


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

--- Comment #85 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to comment #84)
> Did you add any logging code to an opac script to test it? I just added this
> to my opac-main.pl to test:
> 
> C4::Context->logger->debug("This is a debug message");
> C4::Context->logger->error("This is an error !");

Found what happened:
In opac-search Jonathan creates a logger object in opac-search (that's the one
I was looking for). But C4/Auth also initialized a logger ALREADY. So the
second logger got my message, but the template asked it to the first logger and
got nothing. Still following?

Will send a small followup for this.

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


More information about the Koha-bugs mailing list