Log::D...gurator(3pm)

πŸ“¦
version 1.04 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Log::Dispatch::Configurator β€” it's the abstract Configurator class, bestie. The blueprint. The template. The main character that never actually shows up to the party itself, it just tells everyone else how to dress. ✨


πŸŽ€ SYNOPSIS πŸŽ€

okay so this is the vibe. you're building your own configurator, so you roll it like this:

package Log::Dispatch::Configurator::Foo;
use base qw(Log::Dispatch::Configurator);

# should implement
sub get_attrs_global { }
sub get_attrs        { }

# optional
sub reload       { }
sub needs_reload { }

see how get_attrs_global and get_attrs are under "should implement"? that's not a suggestion, babe, that's a requirement πŸ’… and reload plus needs_reload are the optional little extras, the sprinkles on top πŸ“


🌸 DESCRIPTION 🌸

Log::Dispatch::Configurator is an abstract class of config parser. fr fr. so if you're out here making a brand new configurator implementation, you should inherit from this class. it's giving "we don't do it alone in this house" energy 🫢

and if you want the details β€” the whole deep dive β€” go read "PLUGGABLE CONFIGURATOR" in Log::Dispatch::Config. it's all there, iykyk πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Tatsuhiko Miyagawa <miyagawa@bulknews.net> β€” iconic behavior, we stan πŸ’œ

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so yeah, it's free, go wild, just keep the same terms, no cap. 🌈


πŸ¦‹ SEE ALSO πŸ¦‹

  • Log::Dispatch::Config β€” literally the one you need to check for the pluggable configurator tea β˜•

and that's the whole page, bestie! this one came from perl v5.34.0, dated 2022-06-15, and it lives in the User Contributed Perl Documentation corner of the world πŸŽ€ (yeah the header/footer shorten the name to Log::D...gurator β€” it's a whole mystery-novel ellipsis situation, but you and me both know who she really is πŸ’€). stay slay, go inherit responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from