blib/lib/Raisin/Logger.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 50.0% 1 / 2 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new
1.0
CRAP 1.0
« blib/lib/Raisin/Encoder/YAML.pm ↑ Summary blib/lib/Raisin/Encoder.pm »
1 #!perl
2 #PODNAME: Raisin::Logger
3 #ABSTRACT: Default logger for Raisin.
4  
5 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package Raisin::Logger;
9 8 $Raisin::Logger::VERSION = '0.94';
10 8 my $FH = *STDERR;
11  
12 7 ▶sub new { bless {}, shift }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13  
14 4 ▶sub log {
Subroutine log: called CC=1 SCAR=0.0
Pod documented
15 4 my ($self, %args) = @_;
16 4 printf $FH '%s %s', uc($args{level}), $args{message};
17 }
18  
19 8 1;
20  
21 __END__
« blib/lib/Raisin/Encoder/YAML.pm ↑ Summary blib/lib/Raisin/Encoder.pm »