1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
=encoding utf8
=head1 NAME
MojoX::Log::Report - divert log messages into Log::Report
=head1 INHERITANCE
MojoX::Log::Report
is a Mojo::Log
=head1 SYNOPSIS
use MojoX::Log::Report;
my $log = MojoX::Log::Report->new(%options);
$app->log($log); # install logger in the Mojo::App
=head1 DESCRIPTION
[Included since L<Log::Report|Log::Report> v1.00]
Mojo likes to log messages directly into a file, by default. L<Log::Report|Log::Report>
constructs a L<Log::Report::Exception|Log::Report::Exception> object first.
Be aware that this extension does catch the messages to be logged,
but that the dispatching of the error follows a different route now.
For instance, you cannot use C<$ENV{MOJO_LOG_LEVEL}> to control the output
level, but you need to use L<Log::Report::dispatcher()|Log::Report/"Report Production and Configuration"> action C<mode>.
Mojo defines five "levels" of messages, which map onto L<Log::Report|Log::Report>'s
reasons this way:
debug TRACE
info INFO
warn WARNING
error ERROR
fatal ALERT
=head1 METHODS
=head2 Constructors
=over 4
=item $class-E<gt>B<new>(%options)
Inherited C<%options> C<path> and C<level> are ignored.
=back
=head1 SEE ALSO
This module is part of Log-Report version 1.41,
built on September 11, 2025. Website: F<http://perl.overmeer.net/CPAN/>
=head1 LICENSE
For contributors see file ChangeLog.
This software is copyright (c) 2007-2025 by Mark Overmeer.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
|