Log::ger::Filter(3pm)

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

πŸ’– NAME πŸ’–

Log::ger::Filter β€” bestie, this is the one that lets you plug in a filter plugin. That's it. That's the whole vibe. Log::ger::Filter, the 3pm page, we're here, we're thriving. ✨


🌸 VERSION 🌸

version 0.042 β€” yes, that specific number, no cap, don't @ me 🫢


πŸŽ€ SYNOPSIS πŸŽ€

okay so listen. There are two whole ways to live your life here, and it's giving "choose your own adventure" but the adventure is log filtering πŸ’…

✨ To set globally ✨

Like, for everything, main character energy, the whole entire program:

use Log::ger::Filter;
Log::ger::Filter->set('Code', code => sub{ ... });

or, if you want the short-and-snappy version, because sometimes less is more and we love a one-liner:

use Log::ger::Filter 'Code', (code => sub { ... });

πŸ¦‹ To set for current package only πŸ¦‹

If you wanna keep it lowkey and just do your own little corner of the codebase, no sharing, boundaries are healthy:

use Log::ger::Filter;
Log::ger::Filter->set_for_current_package('Code', code => sub { ... });
notice how set goes global and set_for_current_package keeps it local?? the way that difference matters!! 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Your little friends, your support system, the group chat of modules:

  • Log::ger::Output
  • Log::ger::Plugin
  • Log::ger::Format
  • Log::ger::Layout

go read them too, they're all iconic in their own way 🌈


πŸ’œ AUTHOR πŸ’œ

perlancar <perlancar@cpan.org> β€” the actual legend, the moment, the blueprint πŸ™Œ


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. (so basically: go off, remix it, it's yours to play with, just keep the same terms fr fr πŸ“)


and that's the whole page bestie!! this one came from perl v5.38.2, dated 2024-05-25, and it's filed under Log::ger::Filter(3pm). mwah πŸ’‹ go filter some logs, you're doing amazing sweetie πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from