Clio/Log/Log4perl.pm

filter: Statementstmt 63.6% 14 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 100% 2 / 2 totaltotal 62.5% 20 / 32 CC 2 SCAR 9.4
CC
2
Cov
58%
init
6.0
logger
2.0
BEGIN
1.0
CRAP 2.6
« Clio/Process.pm ↑ Summary Clio/Server/TCP.pm »
1  
2 package Clio::Log::Log4perl;
3 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 $Clio::Log::Log4perl::AUTHORITY = 'cpan:AJGB';
5 }
6 {
7 1 $Clio::Log::Log4perl::VERSION = '0.02';
8 }
9 # ABSTRACT: Log4perl log implementation
10  
11 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Log::Log4perl qw( get_logger );
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 extends qw( Clio::Log );
16  
17  
18  
19 0 ▶sub init {
Subroutine init: not called CC=2 SCAR=17.9
Pod documented
20 0 my $self = shift;
21  
22 0 my $config = $self->c->config->LogConfig;
23  
24 0 ▶ if ( my $ro_config = $config->{Config} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $ro_config = $config->{"Config"}) 0 0 0
25 my $config_text = join("\n",
26 0 map { "$_ = $ro_config->{$_}" } keys %$ro_config
27 );
28  
29 0 Log::Log4perl::init( \$config_text );
30 }
31 }
32  
33  
34 0 ▶sub logger {
Subroutine logger: not called CC=1 SCAR=6.9
Pod documented
35 0 my $self = shift;
36  
37 0 return get_logger(@_);
38 }
39  
40  
41 1 1;
42  
43  
44 __END__
« Clio/Process.pm ↑ Summary Clio/Server/TCP.pm »