line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#<<< |
2
|
7
|
|
|
7
|
|
422048
|
use strict; use warnings; |
|
7
|
|
|
7
|
|
18
|
|
|
7
|
|
|
|
|
217
|
|
|
7
|
|
|
|
|
47
|
|
|
7
|
|
|
|
|
18
|
|
|
7
|
|
|
|
|
362
|
|
3
|
|
|
|
|
|
|
#>>> |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package MooX::Role::HasLogger; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
2983
|
use Log::Any qw(); |
|
7
|
|
|
|
|
55612
|
|
|
7
|
|
|
|
|
176
|
|
10
|
7
|
|
|
7
|
|
958
|
use MooX::Role::HasLogger::Types qw( Logger ); |
|
7
|
|
|
|
|
33
|
|
|
7
|
|
|
|
|
69
|
|
11
|
7
|
|
|
7
|
|
2998
|
use Moo::Role qw( has ); |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
60
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has logger => ( is => 'ro', isa => Logger, lazy => 1, builder => 'build_logger' ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub build_logger { |
16
|
2
|
|
|
2
|
0
|
23017
|
return Log::Any->get_logger( category => ref shift ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |