1MooseX::LazyLogDispatchU:s:eLrevCeolnst(r3i)buted Perl DMoocousmeeXn:t:aLtaizoynLogDispatch::Levels(3)
2
3
4
6 MooseX::LazyLogDispatch::Levels - Like MX::LazyLogDispatch, but with
7 level-methods
8
10 package Foo;
11 use Moose;
12 with 'MooseX::LazyLogDispatch::Levels'
13
14 # ... See MooseX::LazyLogDispatch synposis
15 # for configuration
16
17 # But now you have direct level methods:
18 sub foo {
19 my ($self) = @_;
20 $self->debug('started foo');
21 # ^ is identical to v
22 $self->logger->debug("started foo");
23 }
24
26 See MooseX::LazyLogDispatch for the main docs.
27
28 This just adds level methods for the "$self-"logger> levels directly to
29 your class, in addition to bringing in that role.
30
32 log
33 debug
34 info
35 notice
36 warning
37 error
38 critical
39 alert
40 emergency
42 MooseX::LazyLogDispatch MooseX::LogDispatch Log::Dispatch::Configurator
43 Log::Dispatch::Config Log::Dispatch
44
46 Brandon Black "<blblack@gmail.com>"
47
48 Based in part on MooseX::LogDispatch by Ash Berlin "<ash@cpan.org>" and
49 "<perigrin@cpan.org>"
50
52 This module is free software; you can redistribute it and/or modify it
53 under the same terms as Perl itself. See perlartistic.
54
55
56
57perl v5.32.1 2021-01-27MooseX::LazyLogDispatch::Levels(3)