1 package C4::SIP::Trapper;
9 C4::SIP::Trapper - Module for capturing warnings for the SIP logger
13 Ties the given class to this module.
24 Captures warnings and directs them to Koha::Logger as well as STDERR
30 $Log::Log4perl::caller_depth++;
32 Koha::Logger->get( { interface => 'sip', category => 'STDERR' } );
35 $Log::Log4perl::caller_depth--;
40 Suppress errors from Log::Log4perl::Appender::Screen
45 my ( $self, $mode ) = @_;
46 binmode( STDOUT, $mode );