Log::R...inimal(3pm)
π NAME π
Log::Report::Minimal β bestie, it's Log::Report but make it simple. Like, we're simulating all those functions with the absolute bare minimum, no cap.
π¦ INHERITANCE π¦
Log::Report::Minimal
is an Exporter
Yep, it's an Exporter. That's the whole family tree. Slay.
β¨ SYNOPSIS β¨
# See Log::Report, most functions get "hollow" behavior
use Log::Report::Optional mode => 'DEBUG';
Okay so go look at Log::Report for the real tea, because here most functions just get "hollow" behavior. They show up, they exist, they don't do much. It's giving understudy energy. π
πΈ DESCRIPTION πΈ
This module implements the functions that Log::Report gives you, but in the most simple way possible:
- no support for translations
- no dispatchers
- no smart exceptions
That's it. That's the vibe. Minimal to the point of being iconic.
The package uses Log::Report in an "::Optional" way, which means your main script gets to decide whether it wants the "::Minimal" glow-up or the full-blown feature set. Your call, main character. π
π FUNCTIONS π
textdomain( <[$name],$config>|<$name, 'DELETE'|'EXISTS'>|$domain )
π Report Production and Configuration π
dispatcher( <$type, $$name, %options>|<$command, @names> )
Nope. Not supported. Literally not a thing here. Moving on bestie. π
report( [\%options], $reason, $message|<STRING,$params> )
β οΈ Be warned that %options is a HASH here. A hash! Not some fancy object, not an array β a plain old hash. Don't come at it with anything else, she will not survive.
-Option --Default
errno $! or 1
is_fatal <depends on reason>
errno=> INTEGERis_fatal=> BOOLEAN
So errno defaults to $! or 1, and is_fatal defaults to whatever your reason feels like β it depends on the reason, iykyk.
try(CODE, %options)
Does the thing. Takes a CODE and some %options. π«Ά
π§ Abbreviations for report() π§
okay so these are all just lil shorthand versions, each one takes ($message) and that's it:
alert($message)assert($message)error($message)failure($message)fault($message)info($message)mistake($message)notice($message)panic($message)trace($message)warning($message)
Eleven of them. All adorable. All just $message. Periodt. β¨
π Language Translations π
No translations, no Log::Report::Message objects returned. Zero. None. We simply do not do that here.
N__($msgid)N__n($single_msgid, $plural_msgid)N__w(STRING)__($msgid)__n($msgid, $plural_msgid, $count, PAIRS)__nx($msgid, $plural_msgid, $count, PAIRS)__x($msgid, PAIRS)__xn($single_msgid, $plural_msgid, $count, PAIRS)
Look at all those underscores. She's got layers. π
β Configuration β
$obj->import( [$domain], %options )
Go see the Log::Report subroutine import for the deets β this one is just borrowing her outfit. π
π DIAGNOSTICS π
- Error: even length parameter list for
__xat$whereβ cast by__x() - Error: odd length parameter list with
'$msg'β cast byreport() - Error: syntax flag must be either
SHORTorREPORT, not$flag'β cast byimport() - Error: token
'$token'not recognized as reason β cast byreport()
Four ways to get yelled at. None of them are personal, bestie, she's just like that. π
π₯ SEE ALSO π₯
This module is part of Log-Report-Optional version 1.08, built on September 08, 2025. Website: http://perl.overmeer.net/CPAN/
Go check the site, it's giving official. β¨
π LICENSE π
For contributors see file ChangeLog.
This software is copyright (c) 2013-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.
and that's a wrap, babe π©· this whole thing is perl v5.40.1, dated 2025-10-04, and yes the page is literally called Log::R...inimal(3pm) because the header ran out of room β she abbreviates herself, iconic behavior, no notes. ππ
π¦ where this page comes from
- ubuntu resolute: liblog-report-optional-perl 1.08-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liblog-report-optional-perl 1.08-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