Sys::Syslog is a Perl interface to the UNIX syslog(3) calls.
SYNOPSIS
use Sys::Syslog; # all except setlogsock(), or:
use Sys::Syslog qw(:DEFAULT setlogsock); # default set, plus setlogsock()
use Sys::Syslog qw(:standard :macros); # standard functions, plus macros
openlog $ident, $logopt, $facility; # don't forget this
syslog $priority, $format, @args;
$oldmask = setlogmask $mask_priority;
closelog;
EXPORTS
Sys::Syslog exports the following Exporter tags:
* :standard exports the standard syslog(3) functions:
openlog closelog setlogmask syslog
* :extended exports the Perl specific functions for syslog(3):
setlogsock
* :macros exports the symbols corresponding to most of your syslog(3) macros and the LOG_UPTO() and LOG_MASK() functions. See "CONSTANTS" for the supported constants and their meaning.
By default, Sys::Syslog exports the symbols from the :standard tag.
Product's homepage
Requirements:
· Perl