line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Log::Saftpresse::Outputs; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
3
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: class to manage saftpresse outputs |
6
|
|
|
|
|
|
|
our $VERSION = '1.4'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
extends 'Log::Saftpresse::PluginContainer'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'plugin_prefix' => ( is => 'ro', isa => 'Str', |
11
|
|
|
|
|
|
|
default => 'Log::Saftpresse::Output::', |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
3725
|
use Log::Saftpresse::Log4perl; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
147
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub output { |
17
|
0
|
|
|
0
|
0
|
|
my ( $self, @events ) = @_; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
foreach my $plugin ( @{$self->plugins} ) { |
|
0
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
eval { $plugin->output( @events ) }; |
|
0
|
|
|
|
|
|
|
21
|
0
|
0
|
|
|
|
|
if( $@ ) { |
22
|
0
|
|
|
|
|
|
$log->error('error writing event to plugin '.$plugin->name.': '.$@); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=encoding UTF-8 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Log::Saftpresse::Outputs - class to manage saftpresse outputs |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 1.4 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Markus Benning <ich@markusbenning.de> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This software is Copyright (c) 1998 by James S. Seymour, 2015 by Markus Benning. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is free software, licensed under: |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The GNU General Public License, Version 2, June 1991 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |