« blib/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/Batch.pm
↑ Summary
blib/lib/HPC/Runner/Command/submit_jobs/Plugin/Role/Log.pm »
| 1 | package HPC::Runner::Command::Logger::Loggers; | ||
| 2 | |||
| 3 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Log::Log4perl qw(:easy); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | has 'screen_log' => ( | ||
| 7 | is => 'rw', | ||
| 8 | lazy => 1, | ||
| 9 | default => sub { | ||
| 10 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 11 | 0 | 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 | 0 | Log::Log4perl->init( \$log_conf ); | |
| 22 | 0 | return get_logger(); | |
| 23 | } | ||
| 24 | 1 | ); | |
| 25 | |||
| 26 | 1 | 1; | |