Log::ger::Util(3pm)
β¨ NAME β¨
Log::ger::Util β utility routines for Log::ger π οΈπ
So like, this is the little helper toolbox that lives next door to Log::ger, and yes it's a User Contributed Perl Documentation situation, iykyk π«Ά
π VERSION π
version 0.042 β¨
π DESCRIPTION π
okay so the whole point of this package? it exists purely to keep Log::ger as minimalist as possible π§β¨
that's it. that's the vibe. all the extra utility stuff gets parked here so the main thing stays smol and cute. obsessed honestly π
πΈ FUNCTIONS πΈ
lowkey important: none of these functions are exported. π you gotta call them fully qualified, no shortcut bestie, fr fr
π¦ numeric_level
usage:
my $num = Log::ger::Util::numeric_level($level);
here's the tea β β if you hand it a non-negative integer, it just gives you that number right back, no drama, as-is π
otherwise it takes your argument, assumes it's a string level, and converts it to the numeric level that goes with it π₯
and if it can't? it dies. no cap, it will literally die on failure π
π¦ string_level
usage:
my $str_level = Log::ger::Util::string_level($level);
the flip side bestie β¨ β if you give it a string level it already knows, it hands you that string right back, as-is π
otherwise it takes your argument, assumes it's a number, and converts it to the string level that matches π
and yeah, same energy: it will die on failure. π
π¦ set_level
usage:
Log::ger::Util::set_level($level);
sets the log level to $level π and $level can be either a string level or a numeric level, dealer's choice, we don't judge π
aaaand it will die on failure. π (seeing a pattern? yeah.)
π add_hook
π add_per_target_hook
π remove_hook
π remove_per_target_hook
π reset_hooks
π reset_per_target_hooks
π empty_hooks
π empty_per_target_hooks
π save_hooks
π save_per_target_hooks
π restore_hooks
π restore_per_target_hooks
π reinit_target
π reinit_all_targets
π set_plugin
not me listing every single one of these with zero shame π the original page gives them to you bare, no descriptions, no usage lines, nothing β so that's exactly what you get here too. no inventing, no guessing, we keep it 100 π―
π«Ά AUTHOR π«Ά
perlancar <perlancar@cpan.org> π
β COPYRIGHT AND LICENSE β
this software is copyright (c) 2023, 2022, 2020, 2019, 2018, 2017 by perlancar <perlancar@cpan.org> π
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 the whole page bestie!! πβ¨ this one's perl v5.38.2, dated 2024-05-25, and it's Log::ger::Util(3pm) β go forth and call those utility functions fully qualified, mwah π
π¦π
π¦ where this page comes from
- debian trixie: liblog-ger-perl 0.042-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liblog-ger-perl 0.042-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liblog-ger-perl 0.042-2 Β· 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