<<

NAME

C4::SIP::Trapper - Module for capturing warnings for the SIP logger

TIEHANDLE

    Ties the given class to this module.

PRINT

    Captures warnings and directs them to Koha::Logger as well as STDERR

OPEN

    We need OPEN in case Net::Server tries to redirect STDERR. This will
    be tried when param log_file or setsid is passed.

BINMODE

    Suppress errors from Log::Log4perl::Appender::Screen

DIE signal handler

    A global die handler to capture fatal errors and ensures they are logged.
    When DIE is emitted, the message will be logged using Koha::Logger if available,
    and also printed to stderr

<<