| 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
| |||||||||||
| 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 | ||||||||||