-
-
17 Jul 2021 09:01:42 UTC
- Distribution: Log-Report
- Module version: 1.33
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (785 / 7 / 2)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (98.96KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Devel::GlobalDestruction
- Encode
- Log::Report::Optional
- Scalar::Util
- String::Print
- Sys::Syslog
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MojoX::Log::Report - divert log messages into Log::Report
INHERITANCE
MojoX::Log::Report is a Mojo::Log
SYNOPSIS
use MojoX::Log::Report; my $log = MojoX::Log::Report->new(%options); $app->log($log); # install logger in the Mojo::App
DESCRIPTION
[Included since Log::Report v1.00] Mojo likes to log messages directly into a file, by default. Log::Report constructs a 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
$ENV{MOJO_LOG_LEVEL}
to control the output level, but you need to use Log::Report::dispatcher() actionmode
.Mojo defines five "levels" of messages, which map onto Log::Report's reasons this way:
debug TRACE info INFO warn WARNING error ERROR fatal ALERT
METHODS
Constructors
SEE ALSO
This module is part of Log-Report distribution version 1.33, built on July 17, 2021. Website: http://perl.overmeer.net/CPAN/
LICENSE
Copyrights 2007-2021 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
Module Install Instructions
To install Log::Report, copy and paste the appropriate command in to your terminal.
cpanm Log::Report
perl -MCPAN -e shell install Log::Report
For more information on module installation, please visit the detailed CPAN module installation guide.