[Koha-bugs] [Bug 18205] REST interface to Koha::Logger
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Nov 20 13:10:26 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18205
Lari Taskula <lari.taskula at jns.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #60850|0 |1
is obsolete| |
--- Comment #7 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 69228
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69228&action=edit
Bug 18205: Mojo::Log with Koha::Logger::Mojo
This patch adds a new module, Koha::Logger::Mojo, based on
MojoX::Log::Log4perl.
This module allows us to use log4perl configurations with Mojolicious on the
freshly introduced 'rest' interface in log4perl.conf.
$c->app->log->warn will then use Log4perl as the underlying log mechanism and
those log events will point to the appropriate log file.
To test:
1. Install Perl dependency MojoX::Log::Log4perl
2. prove t/Koha/Logger/Mojo.t
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list