Sys::Syslog(3)

Sys::Syslog, openlog, closelog, setlogmask, syslog - Perl interface to the UNIX syslog(3) calls

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     Sys::Syslog, openlog, closelog, setlogmask, syslog - Perl interface to
     the UNIX syslog(3) calls

SYNOPSIS
         use Sys::Syslog;

         openlog $ident, $logopt, $facility;
         syslog $priority, $format, @args;
         $oldmask = setlogmask $mask_priority;
         closelog;


DESCRIPTION
     Sys::Syslog is an interface to the UNIX syslog(3) program.  Call syslog()
     with a string priority and a list of printf() args just like syslog(3).

     Syslog provides the functions:

     openlog $ident, $logopt, $facility
          $ident is prepended to every message.  $logopt contains one or more
          of the words pid, ndelay, cons, nowait.  $facility specifies the
          part of the system

     syslog $priority, $format, @args
          If $priority permits, logs ($format, @args) printed as by
          printf(3V), with the addition that %m is replaced with "$!" (the
          latest error message).

     setlogmask $mask_priority
          Sets log mask $mask_priority and returns the old mask.