line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
16
|
use 5.006; #our |
|
1
|
|
|
|
|
2
|
|
2
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
3
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package My::Project::Logger; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.001000'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
391
|
use parent 'Log::Contextual'; |
|
1
|
|
|
|
|
222
|
|
|
1
|
|
|
|
|
4
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub arg_default_logger { |
12
|
2
|
50
|
|
2
|
0
|
1871
|
return $_[1] if $_[1]; |
13
|
2
|
|
|
|
|
427
|
require Log::Contextual::WarnLogger::Fancy; |
14
|
2
|
|
|
|
|
4
|
my $caller = caller(3); |
15
|
2
|
|
|
|
|
4
|
my $package = uc($caller); |
16
|
2
|
|
|
|
|
7
|
$package =~ s/::/_/g; |
17
|
2
|
|
|
|
|
8
|
return Log::Contextual::WarnLogger::Fancy->new( |
18
|
|
|
|
|
|
|
env_prefix => $package, |
19
|
|
|
|
|
|
|
group_env_prefix => 'MY_PROJECT', |
20
|
|
|
|
|
|
|
label => $caller, |
21
|
|
|
|
|
|
|
default_upto => 'warn', |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
2
|
|
|
2
|
0
|
34678
|
sub default_import { qw( :dlog :log ) } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |