MooseX:...::Levels(3)

πŸ“¦
version 0.02 Β· 2 versions
, in fedora 43

πŸ’– MooseX::LazyLogDispatch::Levels β€” a lil page from the User Contributed Perl Documentation πŸ’–

okay bestie, welcome to the manual for MooseX::LazyLogDispatch::Levels, no cap 🫢


✨ NAME ✨

MooseX::LazyLogDispatch::Levels β€” it's literally like MX::LazyLogDispatch, but with level-methods. that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

package Foo;
use Moose;
with 'MooseX::LazyLogDispatch::Levels'

# ... See MooseX::LazyLogDispatch synposis
#  for configuration

# But now you have direct level methods:
sub foo {
    my ($self) = @_;
    $self->debug('started foo');
    # ^ is identical to v
    $self->logger->debug("started foo");
}

so yeah, you with the role, you get the level methods, and calling $self->debug('started foo') is identical to $self->logger->debug("started foo"). same thing, less typing, we love to see it. ✨


✨ DESCRIPTION ✨

See MooseX::LazyLogDispatch for the main docs. that's where the real tea is, go read it, i'll wait. πŸ“

This one just adds level methods for the "$self-"logger> levels directly to your class, in addition to bringing in that role. so you get the role AND the shortcuts. two-for-one, iconic. πŸ‘‘


✨ LEVEL METHOD NAMES ✨

here's the whole lineup, no skips, no cuts, all of them slay:

🌸 the methods 🌸

  • log
  • debug
  • info
  • notice
  • warning
  • error
  • critical
  • alert
  • emergency

nine levels, nine methods, all yours bestie πŸ’œ


✨ SEE ALSO ✨

go look at these too, they're the friend group:

  • MooseX::LazyLogDispatch
  • MooseX::LogDispatch
  • Log::Dispatch::Configurator
  • Log::Dispatch::Config
  • Log::Dispatch

✨ AUTHOR ✨

Brandon Black <blblack@gmail.com> β€” periodt, credit where it's due πŸ’–

Based in part on MooseX::LogDispatch by Ash Berlin <ash@cpan.org> and <perigrin@cpan.org> β€” shoutout to the collaborators, they ate 🫢


✨ LICENCE ✨

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. fr fr, go read the license, it's giving generosity. πŸŽ€


and that's the page!! this was rendered by perl v5.42.0 on 2025-07-25, so if you're reading this, hi from the past, hope your logs are clean and your levels are correct πŸ’…βœ¨πŸ¦‹ bye bestie!! πŸŒˆπŸ’œ

πŸ“¦ where this page comes from