line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#<<< |
2
|
4
|
|
|
4
|
|
299179
|
use strict; use warnings; |
|
4
|
|
|
4
|
|
11
|
|
|
4
|
|
|
|
|
124
|
|
|
4
|
|
|
|
|
35
|
|
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
233
|
|
3
|
|
|
|
|
|
|
#>>> |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package MooX::Role::HasLogger; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.001001'; |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
1562
|
use Log::Any qw(); |
|
4
|
|
|
|
|
29362
|
|
|
4
|
|
|
|
|
105
|
|
10
|
4
|
|
|
4
|
|
1016
|
use MooX::Role::HasLogger::Types qw( Logger ); |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
42
|
|
11
|
4
|
|
|
4
|
|
1648
|
use Moo::Role qw( has ); |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
45
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has logger => ( is => 'ro', isa => Logger, lazy => 1, builder => 'build_logger' ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub build_logger { |
16
|
1
|
|
|
1
|
0
|
6154
|
return Log::Any->get_logger( category => ref shift ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |