MooseX...:Levels(3pm)

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

πŸ’– MooseX::LogDispatch::Levels(3pm) πŸ’–

okay bestie, welcome to the manual page for MooseX::LogDispatch::Levels(3pm) β€” yep, that's the one, straight out of the User Contributed Perl Documentation section. pull up a chair, this one's short and sweet and honestly kinda iconic for it πŸŽ€


✨ NAME ✨

MooseX::LogDispatch::Levels β€” it's literally MooseX::LogDispatch, but it also hands you methods for all the log levels. it's giving "same energy, more tools" πŸ’…


🌸 SYNOPSIS 🌸

package MyLogger;
use Moose;
with 'MooseX::LogDispatch::Levels';

# Optional configuration attribute would go here.

# Elsewhere...

my $logger = MyLogger->new;
$logger->debug("Something to log");
$logger->logger->debug("This also works");

see that? you consume the role, you get a logger, you log. no drama, no cap 🧚


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: it's just like MooseX::LogDispatch, except the methods for the various log levels get added directly to your class. like, they live in your class now. main character methods fr fr ✨

and the configuration? exactly the same as for MooseX::LogDispatch. same way, no new rules, no secret handshake. iykyk 🫢


πŸ‘‘ METHODS πŸ‘‘

here's the whole squad, no one left behind:

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

that's the list, bestie β€” all nine of them, exactly as they come πŸ’œ


πŸ’€ AUTHOR πŸ’€

Ash Berlin "<ash@cpan.org>". shoutout, legend behaviour honestly 🌟


🌈 LICENCE 🌈

this module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. see perlartistic. so like, go forth, remix, redistribute, slay πŸ’–


and that's a wrap!! this page came to you from perl v5.36.0, dated 2023-02-18, and honestly it ate πŸŽ€βœ¨ bye bestie, go log something πŸ’…
πŸ“¦ where this page comes from