MojoX:...Report(3pm)
π MojoX::Log::Report(3pm) π
okay bestie, welcome to the User Contributed Perl Documentation section of the manual, and lemme tell you, this one is a whole vibe. it's MojoX::Log::Report and it's about to redirect all your log messages straight into Log::Report. iconic. π
β¨ NAME β¨
MojoX::Log::Report β divert log messages into Log::Report. it's giving rerouting-the-mail energy fr fr π
π¦ INHERITANCE π¦
MojoX::Log::Report
is a Mojo::Log
yep, she's a Mojo::Log girlie. subclass, but make it fabulous. π
πΈ SYNOPSIS πΈ
use MojoX::Log::Report;
my $log = MojoX::Log::Report->new(%options);
$app->log($log); # install logger in the Mojo::App
literally three lines and you're living your best logged life. no cap. β¨
π DESCRIPTION π
[Included since Log::Report v1.00] so this has been around since v1.00, queen's been here a minute. π
okay so here's the tea: Mojo likes to log messages directly into a file, by default. that's just its thing. but Log::Report does it differently β it constructs a Log::Report::Exception object first. so you get a whole object, not just some text dumped in a file. main character behavior, honestly. π
β οΈ heads up bestie: be aware that this extension does catch the messages to be logged, but that the dispatching of the error follows a different route now. it's not the Mojo way anymore. π
for instance, you cannot use $ENV{MOJO_LOG_LEVEL} to control the output level. nope, that's not it. instead you gotta use Log::Report::dispatcher() action "mode". that's the vibe check that actually works. π«Ά
so Mojo defines five "levels" of messages, and they map onto Log::Report's reasons like this:
debug TRACE
info INFO
warn WARNING
error ERROR
fatal ALERT
five levels, five reasons, they're matching, they ate. π₯
β METHODS β
π§ Constructors
$class->new(%options)β the classic constructor moment. and listen, the inherited%options"path"and"level"are ignored. like, fully ignored. don't even worry about them, they're not invited to this party. π
π SEE ALSO π
this module is part of Log-Report version 1.46, built on June 16, 2026. π
website: http://perl.overmeer.net/CPAN/ β go check it out, the author is out here doing the lord's work. π«Ά
π LICENSE π
for contributors, see file ChangeLog. π
this software is copyright (c) 2007-2026 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. so yeah, go wild within those terms, bestie. periodt. π
and that's the whole page, you're now officially fluent in MojoX::Log::Report β¨ π
this was perl v5.40.1, dated 2026-07-05, and yes that's the sign-off, mwah, byeee ππ¦π
π¦ where this page comes from
- ubuntu stonking: liblog-report-perl 1.46-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms