LispPerl/Logger.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 0.0% 0 / 4 totaltotal 62.8% 22 / 35 CC 1 SCAR 3.2
CC
1
Cov
74%
info
2.0
warn
2.0
debug
2.0
CRAP 1.4
« LispPerl/Seq.pm ↑ Summary LispPerl/CoreBindings.pm »
1 package Language::LispPerl::Logger;
2 6 $Language::LispPerl::Logger::VERSION = '0.007';
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 ▶use Log::Any qw/$log/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶sub error {
Subroutine error: called CC=1 SCAR=0.0
Pod undocumented
11 1 my $msg = shift;
12 1 $log->error("$msg");
13 1 confess( $msg );
14 }
15  
16 0 ▶sub info {
Subroutine info: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my $msg = shift;
18 0 $log->info($msg);
19 }
20  
21 0 ▶sub warn {
Subroutine warn: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my $msg = shift;
23 0 $log->warn($msg);
24 }
25  
26 0 ▶sub debug {
Subroutine debug: not called CC=1 SCAR=6.9
Pod undocumented
27 0 my $msg = shift;
28 0 $log->debug($msg);
29 }
30  
31 6 1;
32  
« LispPerl/Seq.pm ↑ Summary LispPerl/CoreBindings.pm »