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