| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# -*-perl-*- |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
################################################################################ |
|
4
|
|
|
|
|
|
|
# |
|
5
|
|
|
|
|
|
|
# $Id: ErrLogger.pm 211 2009-05-25 06:05:50Z aijaz $ |
|
6
|
|
|
|
|
|
|
# |
|
7
|
|
|
|
|
|
|
################################################################################ |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
TaskForest::ErrLogger - Functions related to logging to stderr |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DOCUMENTATION |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
This is a class that is used to tie prints to STDERR to $log->error(); |
|
16
|
|
|
|
|
|
|
See Logger::Log4perl for more details. |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
package TaskForest::ErrLogger; |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
87
|
|
|
87
|
|
463
|
use strict; |
|
|
87
|
|
|
|
|
156
|
|
|
|
87
|
|
|
|
|
2900
|
|
|
24
|
87
|
|
|
87
|
|
470
|
use warnings; |
|
|
87
|
|
|
|
|
147
|
|
|
|
87
|
|
|
|
|
2509
|
|
|
25
|
87
|
|
|
87
|
|
471
|
use TaskForest::Logs; |
|
|
87
|
|
|
|
|
148
|
|
|
|
87
|
|
|
|
|
1849
|
|
|
26
|
87
|
|
|
87
|
|
454
|
use Log::Log4perl; |
|
|
87
|
|
|
|
|
148
|
|
|
|
87
|
|
|
|
|
555
|
|
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
BEGIN { |
|
29
|
87
|
|
|
87
|
|
9914
|
use vars qw($VERSION); |
|
|
87
|
|
|
|
|
352
|
|
|
|
87
|
|
|
|
|
3488
|
|
|
30
|
87
|
|
|
87
|
|
10944
|
$VERSION = '1.30'; |
|
31
|
|
|
|
|
|
|
} |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub TIEHANDLE { |
|
34
|
70
|
|
|
70
|
|
213
|
my $class = shift; |
|
35
|
70
|
|
|
|
|
484
|
bless { log => $TaskForest::Logs::log } , $class; |
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub PRINT { |
|
39
|
0
|
|
|
0
|
|
|
my $self = shift; |
|
40
|
0
|
|
|
|
|
|
$Log::Log4perl::caller_depth++; |
|
41
|
0
|
|
|
|
|
|
$self->{log}->error(@_); |
|
42
|
0
|
|
|
|
|
|
$Log::Log4perl::caller_depth--; |
|
43
|
|
|
|
|
|
|
} |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
|
46
|
|
|
|
|
|
|
|