logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MooseX::LogDispatch::Levels - like MooseX::LogDispatch but with methods for log levels

Author

       Ash Berlin "<ash@cpan.org>".

Description

       Like MooseX::LogDispatch, but with methods for the various log levels added directly to your class.

       Configuration is done in the exact same way as for MooseX::LogDispatch.

Licence

       This module is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself. See perlartistic.

perl v5.36.0                                       2023-02-18                   MooseX::LogDispatch::Levels(3pm)

Methods

logdebuginfonoticewarningerrorcriticalalertemergency

Name

       MooseX::LogDispatch::Levels - like MooseX::LogDispatch but with methods for log levels

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 Also