File Coverage
blib/lib/CljPerl/Logger.pm |
|
Criterion |
Covered |
Total |
% |
statement |
6 |
14 |
42.8
|
branch |
|
|
n/a
|
condition |
|
|
n/a
|
subroutine |
2 |
6 |
33.3
|
pod |
0 |
4 |
0.0
|
total |
8 |
24 |
33.3
|
line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CljPerl::Logger;
|
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use strict;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
64
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
398
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.10';
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub error {
|
9
|
0
|
|
|
0
|
0
|
|
my $msg = shift;
|
10
|
0
|
|
|
|
|
|
die "[E] $msg";
|
11
|
|
|
|
|
|
|
}
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub info {
|
14
|
0
|
|
|
0
|
0
|
|
my $msg = shift;
|
15
|
0
|
|
|
|
|
|
print "[I] $msg";
|
16
|
|
|
|
|
|
|
}
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub warn {
|
19
|
0
|
|
|
0
|
0
|
|
my $msg = shift;
|
20
|
0
|
|
|
|
|
|
print "[W] $msg";
|
21
|
|
|
|
|
|
|
}
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub debug {
|
24
|
0
|
|
|
0
|
0
|
|
my $msg = shift;
|
25
|
0
|
|
|
|
|
|
print "[D] $msg";
|
26
|
|
|
|
|
|
|
}
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1;
|
29
|
|
|
|
|
|
|
|