line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Log::Dispatch::Binlog::Handle; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
5651
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
100
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
|
|
1942
|
use base qw( |
8
|
|
|
|
|
|
|
Log::Dispatch::Handle |
9
|
|
|
|
|
|
|
Log::Dispatch::Binlog::Base |
10
|
2
|
|
|
2
|
|
14
|
); |
|
2
|
|
|
|
|
3
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub log_message { |
13
|
0
|
|
|
0
|
0
|
|
my ( $self, %p ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
0
|
|
|
|
|
$self->_storable_print( $self->{handle}, \%p ) |
16
|
|
|
|
|
|
|
or die "Cannot write to handle: $!"; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Log::Dispatch::Binlog::Handle - A subclass of L<Log::Dispatch::Handle> that |
28
|
|
|
|
|
|
|
logs with L<Storable>. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
use Log::Dispatch::Binlog::Handle; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $output Log::Dispatch::Binlog::Handle->new( |
35
|
|
|
|
|
|
|
# Log::Dispatch::Handle options go here |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 DESCRIPTION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Instead of printing messages this will store all of the params to |
41
|
|
|
|
|
|
|
C<log_dispatch> using L<Storable/nstore_fd>. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
L<Log::Dispatch::Handle> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |