line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#<<< |
2
|
4
|
|
|
4
|
|
302843
|
use strict; use warnings; |
|
4
|
|
|
4
|
|
12
|
|
|
4
|
|
|
|
|
119
|
|
|
4
|
|
|
|
|
25
|
|
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
207
|
|
3
|
|
|
|
|
|
|
#>>> |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package MooX::Role::HasLogger; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.001002'; |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
1569
|
use Log::Any qw(); |
|
4
|
|
|
|
|
29436
|
|
|
4
|
|
|
|
|
101
|
|
10
|
4
|
|
|
4
|
|
915
|
use MooX::Role::HasLogger::Types qw( Logger ); |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
36
|
|
11
|
4
|
|
|
4
|
|
1642
|
use Moo::Role qw( has ); |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
49
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has logger => ( is => 'ro', isa => Logger, lazy => 1, builder => 'build_logger' ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub build_logger { |
16
|
1
|
|
|
1
|
0
|
6113
|
return Log::Any->get_logger( category => ref shift ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |