Log::g...String(3pm)

πŸ“¦
version 0.042 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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.


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