File Coverage

blib/lib/Embperl/Log.pm
Criterion Covered Total %
statement 10 13 76.9
branch n/a
condition n/a
subroutine 4 5 80.0
pod n/a
total 14 18 77.7


line stmt bran cond sub pod time code
1              
2             ###################################################################################
3             #
4             # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
5             # Embperl - Copyright (c) 2008-2014 Gerald Richter
6             #
7             # You may distribute under the terms of either the GNU General Public
8             # License or the Artistic License, as specified in the Perl README file.
9             #
10             # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
11             # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12             # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13             #
14             # $Id: Log.pm 1578075 2014-03-16 14:01:14Z richter $
15             #
16             ###################################################################################
17              
18              
19             package Embperl::Log ;
20              
21 1     1   5 use Embperl ;
  1         2  
  1         24  
22 1     1   5 use Embperl::Constant ;
  1         3  
  1         196  
23              
24              
25             sub TIEHANDLE
26              
27             {
28 67     67   134 my $class ;
29            
30 67         384 return bless \$class, shift ;
31             }
32              
33              
34             sub PRINT
35              
36             {
37 162     162   228 shift ;
38 162         3102 Embperl::log(join ('', @_)) ;
39             }
40              
41             sub PRINTF
42              
43             {
44 0     0     shift ;
45 0           my $fmt = shift ;
46 0           Embperl::log(sprintf ($fmt, @_)) ;
47             }
48              
49             1 ;