line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HPC::Runner::Command::Logger::Loggers; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
370
|
use Moose::Role; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
4
|
1
|
|
|
1
|
|
4112
|
use Log::Log4perl qw(:easy); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has 'screen_log' => ( |
7
|
|
|
|
|
|
|
is => 'rw', |
8
|
|
|
|
|
|
|
lazy => 1, |
9
|
|
|
|
|
|
|
default => sub { |
10
|
|
|
|
|
|
|
my $self = shift; |
11
|
|
|
|
|
|
|
my $log_conf = q( |
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
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Log::Log4perl->init( \$log_conf ); |
22
|
|
|
|
|
|
|
return get_logger(); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |