MooseX:...::Levels(3)
π 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 πΈ
logdebuginfonoticewarningerrorcriticalalertemergency
nine levels, nine methods, all yours bestie π
β¨ SEE ALSO β¨
go look at these too, they're the friend group:
MooseX::LazyLogDispatchMooseX::LogDispatchLog::Dispatch::ConfiguratorLog::Dispatch::ConfigLog::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
- fedora 43: perl-MooseX-LazyLogDispatch 0.02-48.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms