Log::ger::Format(3pm)

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

πŸ’– Log::ger::Format πŸ’–

okay bestie, so this page is all about Log::ger::Format β€” the module you use when you wanna plug in a format plugin for your logging. that's the whole vibe. let's go πŸ’…


✨ VERSION ✨

this is version 0.042 β€” yes she has a version, she's official πŸŽ€


🌸 SYNOPSIS 🌸

setting it for the current package ONLY (the lil private era)

you can do it like this:

use Log::ger::Format 'Block';

or, if you're feeling verbose and methodical about it:

use Log::ger::Format;
Log::ger::Format->set_for_current_package('Block');

setting it GLOBALLY (main character energy, affects everyone)

use Log::ger::Format;
Log::ger::Format->set('Block');

like. two whole lines. set for global, set_for_current_package for just you. pick your fighter 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

note: since format plugins affect log-producing code, the import syntax defaults to setting for the current package instead of globally.

fr fr, that's the important bit. the format plugins mess with the code that makes your logs, so use Log::ger::Format '...' doesn't go global by default β€” it stays local to your package. it's giving responsible, it's giving considerate. not her volunteering to rewrite everybody's logging without asking πŸ’€


πŸ’œ SEE ALSO πŸ’œ

  • Log::ger::Layout
  • Log::ger::Output
  • Log::ger::Plugin
  • Log::ger::Filter

the whole squad, together at last πŸ«‚βœ¨


πŸ‘‘ AUTHOR πŸ‘‘

perlancar <perlancar@cpan.org> β€” the icon, the legend, the one who wrote this whole thing 🌟


this software is copyright (c) 2023, 2022, 2020, 2019, 2018, 2017 by perlancar <perlancar@cpan.org>.

it's free software, bestie πŸ’– you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay.


okay that's the whole page, tysm for reading πŸ₯ΉπŸ’«

this has been Log::ger::Format, perl v5.38.2, 2024-05-25 β€” and yes i'm signing off in style bc you deserve it πŸ’…πŸŒΈπŸ¦‹ mwah, go format some logs ✨

πŸ“¦ where this page comes from