[Koha-bugs] [Bug 32612] Koha background worker should log to the worker-error.log

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 1 03:43:24 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32612

--- Comment #8 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #7)
> (In reply to David Cook from comment #6)
> > (In reply to Jonathan Druart from comment #5)
> > > That's actually not a solution. The worker will call Koha methods which will
> > > log using Koha::Logger.
> > 
> > Koha::Logger can be configured to log to STDERR which would then be handled
> > via "daemon", so it should work.
> 
> Are you referring to Koha::Logger->debug_to_screen?

No, I mean in log4perl.conf. We typically use Log::Log4perl::Appender::File in
Koha but you can use Log::Log4perl::Appender::Screen instead. You can then
choose STDERR instead of STDOUT for that "screen" output.

Looks like it's been mentioned (mostly by me) on bug 25284, bug 28477, bug
16357, and bug 8190. 

Not enough time and too much inertia to change existing things on those bugs,
but we have a chance here to use Log::Log4perl::Appender::Screen from the
start.

Happy to chat more about it.

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


More information about the Koha-bugs mailing list