Saftpresse/Outputs.pm

filter: Statementstmt 55.5% 10 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 50.0% 12 / 24 SCAR 14.2
CC
3
Cov
50%
output
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.1
« Saftpresse/Input/Stdin.pm ↑ Summary Saftpresse/Plugin/Postfix/QueueID.pm »
1 package Log::Saftpresse::Outputs;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: class to manage saftpresse outputs
6 1 our $VERSION = '1.5'; # VERSION
7  
8 1 extends 'Log::Saftpresse::PluginContainer';
9  
10 1 has 'plugin_prefix' => ( is => 'ro', isa => 'Str',
11 default => 'Log::Saftpresse::Output::',
12 );
13  
14 1 ▶use Log::Saftpresse::Log4perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 sub output {
17 0 ▶ my ( $self, @events ) = @_;
Subroutine output: not called CC=3 SCAR=24.8
Pod undocumented
18  
19 0 foreach my $plugin ( @{$self->plugins} ) {
20 0 eval { $plugin->output( @events ) };
21 0 ▶ if( $@ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 0 0
22 0 $log->error('error writing event to plugin '.$plugin->name.': '.$@);
23 }
24 }
25  
26 0 return;
27 }
28  
29 1 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.5
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
« Saftpresse/Input/Stdin.pm ↑ Summary Saftpresse/Plugin/Postfix/QueueID.pm »