1MooseX::LogDispatch::LeUvseelrs(C3o)ntributed Perl DocumMeonotsaetXi:o:nLogDispatch::Levels(3)
2
3
4

NAME

6       MooseX::LogDispatch::Levels
7

SYNOPSIS

9        package MyLogger;
10        use Moose;
11        with 'MooseX::LogDispatch::Levels';
12
13        # Optional configuration attribute would go here.
14
15        # Elsewhere...
16
17        my $logger = MyLogger->new;
18        $logger->debug("Something to log");
19        $logger->logger->debug("This also works");
20

DESCRIPTION

22       Like MooseX::LogDispatch, but with methods for the various log levels
23       added directly to your class.
24
25       Configuration is done in the exact same way as for MooseX::LogDispatch.
26

METHODS

28   log
29   debug
30   info
31   notice
32   warning
33   error
34   critical
35   alert
36   emergency

AUTHOR

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

LICENCE

41       This module is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself. See perlartistic.
43
44
45
46perl v5.32.0                      2020-07-28    MooseX::LogDispatch::Levels(3)
Impressum