line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package BioX::Workflow::Command::Utils::Log; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1436
|
use Moose::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
19
|
|
4
|
2
|
|
|
2
|
|
15433
|
use Log::Log4perl qw(:easy); |
|
2
|
|
|
|
|
91965
|
|
|
2
|
|
|
|
|
13
|
|
5
|
2
|
|
|
2
|
|
3551
|
use DateTime; |
|
2
|
|
|
|
|
1046131
|
|
|
2
|
|
|
|
|
287
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
has 'app_log' => ( |
8
|
|
|
|
|
|
|
is => 'rw', |
9
|
|
|
|
|
|
|
default => sub { |
10
|
|
|
|
|
|
|
my $self = shift; |
11
|
|
|
|
|
|
|
Log::Log4perl->init( \ <<'EOT'); |
12
|
|
|
|
|
|
|
log4perl.category = DEBUG, Screen |
13
|
|
|
|
|
|
|
log4perl.appender.Screen = \ |
14
|
|
|
|
|
|
|
Log::Log4perl::Appender::ScreenColoredLevels |
15
|
|
|
|
|
|
|
log4perl.appender.Screen.layout = \ |
16
|
|
|
|
|
|
|
Log::Log4perl::Layout::PatternLayout |
17
|
|
|
|
|
|
|
log4perl.appender.Screen.layout.ConversionPattern = \ |
18
|
|
|
|
|
|
|
[%d] %m %n |
19
|
|
|
|
|
|
|
EOT |
20
|
|
|
|
|
|
|
return get_logger(); |
21
|
|
|
|
|
|
|
}, |
22
|
|
|
|
|
|
|
lazy => 1, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |