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
|
|
92304
|
use strict;
|
|
14
|
|
|
|
|
107
|
|
|
14
|
|
|
|
|
949
|
|
15
|
|
|
|
|
|
|
require Exporter;
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
########################################################################
|
18
|
|
|
|
|
|
|
package Log::Agent;
|
19
|
|
|
|
|
|
|
|
20
|
14
|
|
|
|
|
1689
|
use vars qw($Driver $Prefix $Trace $Debug $Confess
|
21
|
14
|
|
|
14
|
|
90
|
$OS_Error $AUTOLOAD $Caller $Priorities $Tags $DATUM %prio_cache);
|
|
14
|
|
|
|
|
29
|
|
22
|
|
|
|
|
|
|
|
23
|
14
|
|
|
14
|
|
7497
|
use AutoLoader;
|
|
14
|
|
|
|
|
21445
|
|
|
14
|
|
|
|
|
80
|
|
24
|
14
|
|
|
14
|
|
594
|
use vars qw(@ISA @EXPORT @EXPORT_OK);
|
|
14
|
|
|
|
|
33
|
|
|
14
|
|
|
|
|
1132
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
@ISA = qw(Exporter);
|
27
|
|
|
|
|
|
|
@EXPORT = qw(
|
28
|
|
|
|
|
|
|
logconfig
|
29
|
|
|
|
|
|
|
logconfess logcroak logcarp logxcroak logxcarp
|
30
|
|
|
|
|
|
|
logsay logerr logwarn logdie logtrc logdbg
|
31
|
|
|
|
|
|
|
);
|
32
|
|
|
|
|
|
|
@EXPORT_OK = qw(
|
33
|
|
|
|
|
|
|
logwrite logtags
|
34
|
|
|
|
|
|
|
);
|
35
|
|
|
|
|
|
|
|
36
|
14
|
|
|
14
|
|
5948
|
use Log::Agent::Priorities qw(:LEVELS priority_level level_from_prio);
|
|
14
|
|
|
|
|
42
|
|
|
14
|
|
|
|
|
2232
|
|
37
|
14
|
|
|
14
|
|
6011
|
use Log::Agent::Formatting qw(tag_format_args);
|
|
14
|
|
|
|
|
132
|
|
|
14
|
|
|
|
|
2098
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our $VERSION = '1.004';
|
40
|
|
|
|
|
|
|
$VERSION = eval $VERSION;
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
$Trace = NOTICE; # Default tracing
|
43
|
|
|
|
|
|
|
$OS_Error = ''; # Data stash for the $! value
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub AUTOLOAD {
|
46
|
61
|
|
|
61
|
|
9497
|
${Log::Agent::OS_Error} = $!; # for safe-keeping, the braces
|
47
|
|
|
|
|
|
|
# prevent CVS substitution
|
48
|
61
|
|
|
|
|
138
|
$AutoLoader::AUTOLOAD = $AUTOLOAD;
|
49
|
61
|
|
|
|
|
267
|
goto &AutoLoader::AUTOLOAD;
|
50
|
|
|
|
|
|
|
}
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1;
|
53
|
|
|
|
|
|
|
__END__
|