line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::FreeIPA::DummyLogger; |
2
|
|
|
|
|
|
|
$Net::FreeIPA::DummyLogger::VERSION = '3.0.2'; |
3
|
6
|
|
|
6
|
|
33
|
use strict; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
154
|
|
4
|
6
|
|
|
6
|
|
21
|
use warnings; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
422
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Net::FreeIPA::DummyLogger provides dummy logger with log4perl interface |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head2 Public methods |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=over |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=item new |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new |
19
|
|
|
|
|
|
|
{ |
20
|
0
|
|
|
0
|
1
|
|
my $this = shift; |
21
|
0
|
|
0
|
|
|
|
my $class = ref($this) || $this; |
22
|
0
|
|
|
|
|
|
my $self = {}; # here, it gives a reference on a hash |
23
|
0
|
|
|
|
|
|
bless $self, $class; |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
return $self; |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# Mock basic methods of Log4Perl getLogger instance |
29
|
6
|
|
|
6
|
|
23
|
no strict 'refs'; ## no critic |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
370
|
|
30
|
|
|
|
|
|
|
foreach my $i (qw(error warn info debug)) { |
31
|
|
|
|
0
|
|
|
*{$i} = sub {} |
32
|
|
|
|
|
|
|
} |
33
|
6
|
|
|
6
|
|
19
|
use strict 'refs'; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
181
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=back |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |