lib/BioX/Workflow/Command/Utils/Log.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 81.8% 18 / 22 CC 1 SCAR 1.8
CC
1
Cov
82%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/BioX/Workflow/Command/new.pm ↑ Summary lib/BioX/Workflow/Command/run/Rules/Directives/Types/Stash.pm »
1 package BioX::Workflow::Command::Utils::Log;
2  
3 2 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Log::Log4perl qw(:easy);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use DateTime;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 has 'app_log' => (
10 is => 'rw',
11 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 0 my $self = shift;
13 0 Log::Log4perl->init( \ <<'EOT');
14 log4perl.category = DEBUG, Screen
15 log4perl.appender.Screen = \
16 Log::Log4perl::Appender::ScreenColoredLevels
17 log4perl.appender.Screen.layout = \
18 Log::Log4perl::Layout::PatternLayout
19 log4perl.appender.Screen.layout.ConversionPattern = \
20 [%d] %m %n
21 EOT
22 0 return get_logger();
23 },
24 2 lazy => 1,
25 );
26  
27 2 1;
« lib/BioX/Workflow/Command/new.pm ↑ Summary lib/BioX/Workflow/Command/run/Rules/Directives/Types/Stash.pm »