http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8190
Kyle M Hall <k...@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #13740|0 |1 is obsolete| | --- Comment #34 from Kyle M Hall <k...@bywatersolutions.com> --- Created attachment 13925 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13925&action=edit Bug 8190: Koha::Utils::Logger, Logging module use Koha::Utils::Logger qw/$log/; $log = Koha::Utils::Logger->new; $log->debug("This is a debug message"); $log->info("This is an information"); $log->error("This is an error !"); The Logger constructor can take an hash reference with "file" and "level" to define a filepath or a log level. For a log level >= warning, a call stack is printed. Prerequisite: - set an environment variable KOHA_LOG in your virtual host: SetEnv KOHA_LOG /home/koha/var/log/opac.log - set a write flag for www-data on this file Please have a look at t/Logger.t for more details. Signed-off-by: Mason James <m...@kohaaloha.com> Signed-off-by: Kyle M Hall <k...@bywatersolutions.com> Bug 8190: Followup Logger: FIX perlcritic Signed-off-by: Mason James <m...@kohaaloha.com> Signed-off-by: Kyle M Hall <k...@bywatersolutions.com> Bug 8190 - Followup - Add cached logger, output messages to template * Add C4::Context->logger * Embed logged messageds to a comment in the template html, controlled by the system preference LogToHtmlComments\ * Add both new system preferences to sysprefs.sql Signed-off-by: Paul Poulain <paul.poul...@biblibre.com> Bug 8190 follow-up moving updatedatabase part at the right place Signed-off-by: Kyle M Hall <k...@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/