File Coverage

blib/lib/Log/Report/Dispatcher/Perl.pm
Criterion Covered Total %
statement 18 20 90.0
branch n/a
condition n/a
subroutine 6 7 85.7
pod 1 1 100.0
total 25 28 89.2


line stmt bran cond sub pod time code
1             # Copyrights 2007-2017 by [Mark Overmeer].
2             # For other contributors see ChangeLog.
3             # See the manual pages for details on the licensing terms.
4             # Pod stripped from pm file by OODoc 2.02.
5 15     15   92 use warnings;
  15         29  
  15         486  
6 15     15   77 use strict;
  15         29  
  15         405  
7              
8             package Log::Report::Dispatcher::Perl;
9 15     15   81 use vars '$VERSION';
  15         28  
  15         613  
10             $VERSION = '1.23';
11              
12 15     15   81 use base 'Log::Report::Dispatcher';
  15         28  
  15         1369  
13              
14 15     15   85 use Log::Report 'log-report';
  15         30  
  15         70  
15 15     15   4092 use IO::File;
  15         81549  
  15         2315  
16              
17             my $singleton = 0; # can be only one (per thread)
18              
19              
20             sub log($$$$)
21 0     0 1   { my ($self, $opts, $reason, $message, $domain) = @_;
22 0           print STDERR $self->translate($opts, $reason, $message);
23             }
24              
25             1;