line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Log::Any::Adapter::Base; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Log::Any::Adapter::Base::VERSION = '0.11'; |
4
|
|
|
|
|
|
|
} |
5
|
4
|
|
|
4
|
|
23
|
use Log::Any; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
29
|
|
6
|
4
|
|
|
4
|
|
157
|
use Log::Any::Adapter::Util qw(make_method); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
221
|
|
7
|
4
|
|
|
4
|
|
18
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
254
|
|
8
|
4
|
|
|
4
|
|
94
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
132
|
|
9
|
4
|
|
|
4
|
|
24
|
use base qw(Log::Any::Adapter::Core); # In Log-Any distribution |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
3939
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
10
|
|
|
10
|
0
|
17
|
my $class = shift; |
13
|
10
|
|
|
|
|
29
|
my $self = {@_}; |
14
|
10
|
|
|
|
|
26
|
bless $self, $class; |
15
|
10
|
|
|
|
|
61
|
$self->init(@_); |
16
|
10
|
|
|
|
|
96
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
3
|
|
|
3
|
0
|
6
|
sub init { } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub delegate_method_to_slot { |
22
|
0
|
|
|
0
|
0
|
|
my ( $class, $slot, $method, $adapter_method ) = @_; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
make_method( $method, |
25
|
0
|
|
|
0
|
|
|
sub { my $self = shift; return $self->{$slot}->$adapter_method(@_) }, |
|
0
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
$class ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |