line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Armadito::Agent::Logger::Backend; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
10949316
|
use strict; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
115
|
|
4
|
4
|
|
|
4
|
|
12
|
use warnings; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
144
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
1; |
7
|
|
|
|
|
|
|
__END__ |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Armadito::Agent::Logger::Backend - An abstract logger backend |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DESCRIPTION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
This is an abstract base classe for logger backends. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 METHODS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 new(%params) |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
The constructor. The following parameters are allowed, as keys of the $params |
22
|
|
|
|
|
|
|
hashref: |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=over |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=item I<config> |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
the agent configuration object |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=back |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 addMessage(%params) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Add a log message, with a specific level. The following arguments are allowed: |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=over |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item I<level> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Can be one of: |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=over |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item debug |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item info |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item warning |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item error |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item I<message> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=back |