1MojoX::Log::Report(3) User Contributed Perl DocumentationMojoX::Log::Report(3)
2
3
4
6 MojoX::Log::Report - divert log messages into Log::Report
7
9 MojoX::Log::Report
10 is a Mojo::Log
11
13 use MojoX::Log::Report;
14 my $log = MojoX::Log::Report->new(%options);
15 $app->log($log); # install logger in the Mojo::App
16
18 [Included since Log::Report v1.00] Mojo likes to log messages directly
19 into a file, by default. Log::Report constructs a
20 Log::Report::Exception object first.
21
22 Be aware that this extension does catch the messages to be logged, but
23 that the dispatching of the error follows a different route now. For
24 instance, you cannot use $ENV{MOJO_LOG_LEVEL} to control the output
25 level, but you need to use Log::Report::dispatcher() action "mode".
26
27 Mojo defines five "levels" of messages, which map onto Log::Report's
28 reasons this way:
29
30 debug TRACE
31 info INFO
32 warn WARNING
33 error ERROR
34 fatal ALERT
35
37 Constructors
38 MojoX::Log::Report->new(%options)
39 Inherited %options "path" and "level" are ignored.
40
42 This module is part of Log-Report distribution version 1.33, built on
43 July 17, 2021. Website: http://perl.overmeer.net/CPAN/
44
46 Copyrights 2007-2021 by [Mark Overmeer <markov@cpan.org>]. For other
47 contributors see ChangeLog.
48
49 This program is free software; you can redistribute it and/or modify it
50 under the same terms as Perl itself. See http://dev.perl.org/licenses/
51
52
53
54perl v5.34.0 2021-07-22 MojoX::Log::Report(3)