line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Log::AndError::Constants;
|
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1112
|
use strict;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
180
|
|
4
|
2
|
|
|
2
|
|
11
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
257
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
require Exporter;
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
@ISA = qw(Exporter);
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Items to export into callers namespace by default. Note: do not export
|
11
|
|
|
|
|
|
|
# names by default without a very good reason. Use EXPORT_OK instead.
|
12
|
|
|
|
|
|
|
# Do not simply export all your public functions/methods/constants.
|
13
|
|
|
|
|
|
|
@EXPORT = qw(
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
);
|
16
|
|
|
|
|
|
|
$VERSION = '0.01';
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# debugging and logging constants
|
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
14
|
use constant ALWAYSLOG => -3;
|
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
176
|
|
21
|
2
|
|
|
2
|
|
11
|
use constant INFO => -2;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
80
|
|
22
|
2
|
|
|
2
|
|
11
|
use constant DEBUG0 => 0;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
93
|
|
23
|
2
|
|
|
2
|
|
9
|
use constant DEBUG1 => 1;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
1977
|
|
24
|
2
|
|
|
2
|
|
12
|
use constant DEBUG2 => 2;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
118
|
|
25
|
2
|
|
|
2
|
|
16
|
use constant DEBUG3 => 3;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
95
|
|
26
|
2
|
|
|
2
|
|
10
|
use constant DEBUG4 => 4;
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
84
|
|
27
|
2
|
|
|
2
|
|
10
|
use constant DEBUG5 => 5;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
243
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my @Debug = qw( DEBUG0 DEBUG1 DEBUG2 DEBUG3 DEBUG4 DEBUG5 );
|
30
|
|
|
|
|
|
|
my @Log = qw( ALWAYSLOG INFO );
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
@EXPORT_OK = ( @Debug, @Log );
|
33
|
|
|
|
|
|
|
%EXPORT_TAGS = (
|
34
|
|
|
|
|
|
|
'all' => [ @EXPORT_OK ],
|
35
|
|
|
|
|
|
|
'debug' => [ @Debug ],
|
36
|
|
|
|
|
|
|
'log' => [ @Log ],
|
37
|
|
|
|
|
|
|
);
|
38
|
|
|
|
|
|
|
1;
|
39
|
|
|
|
|
|
|
__END__
|