Log::g...String(3pm)
π Log::ger::Output::String β it's giving "output goes into a string" π
okay bestie, so this is Log::ger::Output::String, a little module from the User Contributed Perl Documentation corner of the world, and honestly? it does exactly one thing and it does it flawlessly. no cap.
β¨ VERSION β¨
version 0.042 β that's the one, that's the era we're in. π
π¦ SYNOPSIS π¦
BEGIN { our $str }
use Log::ger::Output 'String' => (
string => \$str,
# append_newline => 0, # default is true, to mimic Log::ger::Output::Screen
);
use Log::ger;
log_warn "warn ...";
log_error "debug ...";
and then, the moment of truth: $str will contain "warn ...\n". periodt. β¨
πΈ DESCRIPTION πΈ
fr fr: for testing only. that's the whole vibe. she's not here to run your production logging empire, she's here so you can peek at what got logged without touching a real file. π
π CONFIGURATION π
string => scalarref
Required.</purole>
wait, typo, let me try again: Required. as in, you literally cannot skip this one, bestie. she needs somewhere to put the output.
formatter => coderef
Optional. bring your own if you want, no pressure. π«Ά
append_newline => bool (default: 1)
default is 1, and the synopsis comment tells you why: it's mimicking Log::ger::Output::Screen. if you want your string newline-free, you know what to do. π
π AUTHOR π
perlancar <perlancar@cpan.org> β iconic behavior, honestly.
π 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.
not me listing every single year like a birthday candle situation, but the original said it so I said it. π
and that's the whole page, bestie! this one came to you courtesy of perl v5.38.2, dated 2024-05-25, from the Log::g...String(3pm) page β mwah, go log something cute πβ¨π
π¦ 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