line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################################################### |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Agent.pm |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# Copyright (C) 1999 Raphael Manfredi. |
6
|
|
|
|
|
|
|
# Copyright (C) 2002-2017 Mark Rogaski, mrogaski@cpan.org; |
7
|
|
|
|
|
|
|
# all rights reserved. |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# See the README file included with the |
10
|
|
|
|
|
|
|
# distribution for license information. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
########################################################################### |
13
|
|
|
|
|
|
|
|
14
|
14
|
|
|
14
|
|
93466
|
use strict; |
|
14
|
|
|
|
|
107
|
|
|
14
|
|
|
|
|
943
|
|
15
|
|
|
|
|
|
|
require Exporter; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
######################################################################## |
18
|
|
|
|
|
|
|
package Log::Agent; |
19
|
|
|
|
|
|
|
|
20
|
14
|
|
|
|
|
1753
|
use vars qw($Driver $Prefix $Trace $Debug $Confess |
21
|
14
|
|
|
14
|
|
87
|
$OS_Error $AUTOLOAD $Caller $Priorities $Tags $DATUM %prio_cache); |
|
14
|
|
|
|
|
32
|
|
22
|
|
|
|
|
|
|
|
23
|
14
|
|
|
14
|
|
7538
|
use AutoLoader; |
|
14
|
|
|
|
|
21183
|
|
|
14
|
|
|
|
|
84
|
|
24
|
14
|
|
|
14
|
|
570
|
use vars qw(@ISA @EXPORT @EXPORT_OK); |
|
14
|
|
|
|
|
30
|
|
|
14
|
|
|
|
|
1280
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
@ISA = qw(Exporter); |
27
|
|
|
|
|
|
|
@EXPORT = qw( |
28
|
|
|
|
|
|
|
logconfig |
29
|
|
|
|
|
|
|
logconfess logcluck logcroak logcarp logxcroak logxcarp |
30
|
|
|
|
|
|
|
logdebug loginfo logsay logerr logwarn logdie logtrc logdbg |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
@EXPORT_OK = qw( |
33
|
|
|
|
|
|
|
logwrite logtags |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
14
|
|
|
14
|
|
6194
|
use Log::Agent::Priorities qw(:LEVELS priority_level level_from_prio); |
|
14
|
|
|
|
|
38
|
|
|
14
|
|
|
|
|
2407
|
|
37
|
14
|
|
|
14
|
|
6043
|
use Log::Agent::Formatting qw(tag_format_args); |
|
14
|
|
|
|
|
151
|
|
|
14
|
|
|
|
|
2251
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our $VERSION = '1.005'; |
40
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
$Trace = NOTICE; # Default tracing |
43
|
|
|
|
|
|
|
$OS_Error = ''; # Data stash for the $! value |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub AUTOLOAD { |
46
|
68
|
|
|
68
|
|
9580
|
${Log::Agent::OS_Error} = $!; # for safe-keeping, the braces |
47
|
|
|
|
|
|
|
# prevent CVS substitution |
48
|
68
|
|
|
|
|
147
|
$AutoLoader::AUTOLOAD = $AUTOLOAD; |
49
|
68
|
|
|
|
|
283
|
goto &AutoLoader::AUTOLOAD; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
__END__ |