Koha/C4/SIP/Logger.pm
Jonathan Druart 9f47b4ffd7 Bug 26673: Remove shebangs from Perl modules
It's not needed.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-10-26 00:14:42 +01:00

69 lines
1.2 KiB
Perl

package C4::SIP::Logger;
use Modern::Perl;
use base 'Exporter';
our @EXPORT_OK = qw ( get_logger set_logger );
our $activeSIPServer;
our $activeLogger;
=head1 NAME
C4::SIP::Logger - Module for handling SIP server logging
=head2 get_SIPServer
my $sipServer = C4::SIP::SIPServer::get_SIPServer()
@RETURNS C4::SIP::SIPServer, the current server's child-process used to handle this SIP-transaction
=cut
sub get_SIPServer {
return $activeSIPServer;
}
=head2 _set_SIPServer
my $sipServer = C4::SIP::SIPServer::_set_SIPServer($sipServer)
Sets the passed in SIP server as the active SIP server and returns it as well
@RETURNS C4::SIP::SIPServer, the current server's child-process used to handle this SIP-transaction
=cut
sub _set_SIPServer {
my ($sipServer) = @_;
$activeSIPServer = $sipServer;
return $activeSIPServer;
}
=head2 get_logger
my $logger = C4::SIP::SIPServer::get_logger()
@RETURNS Koha::Logger, the logger used to log this SIP-transaction
=cut
sub get_logger {
return $activeLogger;
}
=head2 set_logger
my $logger = C4::SIP::SIPServer::set_logger($logger)
=cut
sub set_logger {
my ($logger) = @_;
$activeLogger = $logger;
return $activeLogger;
}
1;
__END__