line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Log::Dispatch::Vars; |
2
|
|
|
|
|
|
|
|
3
|
29
|
|
|
29
|
|
152
|
use strict; |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
650
|
|
4
|
29
|
|
|
29
|
|
116
|
use warnings; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
934
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '2.69'; |
7
|
|
|
|
|
|
|
|
8
|
29
|
|
|
29
|
|
144
|
use Exporter qw( import ); |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
4178
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
11
|
|
|
|
|
|
|
%CanonicalLevelNames |
12
|
|
|
|
|
|
|
%LevelNamesToNumbers |
13
|
|
|
|
|
|
|
@OrderedLevels |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
## no critic (Variables::ProhibitPackageVars) |
17
|
|
|
|
|
|
|
our %CanonicalLevelNames = ( |
18
|
|
|
|
|
|
|
( |
19
|
|
|
|
|
|
|
map { $_ => $_ } |
20
|
|
|
|
|
|
|
qw( |
21
|
|
|
|
|
|
|
debug |
22
|
|
|
|
|
|
|
info |
23
|
|
|
|
|
|
|
notice |
24
|
|
|
|
|
|
|
warning |
25
|
|
|
|
|
|
|
error |
26
|
|
|
|
|
|
|
critical |
27
|
|
|
|
|
|
|
alert |
28
|
|
|
|
|
|
|
emergency |
29
|
|
|
|
|
|
|
) |
30
|
|
|
|
|
|
|
), |
31
|
|
|
|
|
|
|
warn => 'warning', |
32
|
|
|
|
|
|
|
err => 'error', |
33
|
|
|
|
|
|
|
crit => 'critical', |
34
|
|
|
|
|
|
|
emerg => 'emergency', |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
our @OrderedLevels = qw( |
38
|
|
|
|
|
|
|
debug |
39
|
|
|
|
|
|
|
info |
40
|
|
|
|
|
|
|
notice |
41
|
|
|
|
|
|
|
warning |
42
|
|
|
|
|
|
|
error |
43
|
|
|
|
|
|
|
critical |
44
|
|
|
|
|
|
|
alert |
45
|
|
|
|
|
|
|
emergency |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
our %LevelNamesToNumbers = ( |
49
|
|
|
|
|
|
|
( map { $OrderedLevels[$_] => $_ } 0 .. $#OrderedLevels ), |
50
|
|
|
|
|
|
|
warn => 3, |
51
|
|
|
|
|
|
|
err => 4, |
52
|
|
|
|
|
|
|
crit => 5, |
53
|
|
|
|
|
|
|
emerg => 7, |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# ABSTRACT: Variables used internally by multiple packages |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
__END__ |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=pod |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=encoding UTF-8 |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 NAME |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Log::Dispatch::Vars - Variables used internally by multiple packages |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 VERSION |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
version 2.69 |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 DESCRIPTION |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
There are no user-facing parts here. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 SUPPORT |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Bugs may be submitted at L<https://github.com/houseabsolute/Log-Dispatch/issues>. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 SOURCE |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
The source code repository for Log-Dispatch can be found at L<https://github.com/houseabsolute/Log-Dispatch>. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 AUTHOR |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Dave Rolsky. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This is free software, licensed under: |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
The full text of the license can be found in the |
101
|
|
|
|
|
|
|
F<LICENSE> file included with this distribution. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |