home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / Sys::Syslog.z / Sys::Syslog
Encoding:
Text File  |  1998-10-30  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSyyyyssss::::::::SSSSyyyysssslllloooogggg((((3333))))                                                  SSSSyyyyssss::::::::SSSSyyyysssslllloooogggg((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Sys::Syslog, openlog, closelog, setlogmask, syslog - Perl interface to
  10.      the UNIX _s_y_s_l_o_g(3) calls
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.          use Sys::Syslog;
  14.  
  15.          openlog $ident, $logopt, $facility;
  16.          syslog $priority, $format, @args;
  17.          $oldmask = setlogmask $mask_priority;
  18.          closelog;
  19.  
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      Sys::Syslog is an interface to the UNIX syslog(3) program.  Call syslog()
  23.      with a string priority and a list of printf() args just like syslog(3).
  24.  
  25.      Syslog provides the functions:
  26.  
  27.      openlog $ident, $logopt, $facility
  28.           $_i_d_e_n_t is prepended to every message.  $_l_o_g_o_p_t contains one or more
  29.           of the words _p_i_d, _n_d_e_l_a_y, _c_o_n_s, _n_o_w_a_i_t.  $_f_a_c_i_l_i_t_y specifies the
  30.           part of the system
  31.  
  32.      syslog $priority, $format, @args
  33.           If $_p_r_i_o_r_i_t_y permits, logs ($_f_o_r_m_a_t, @_a_r_g_s) printed as by
  34.           printf(3V), with the addition that %_m is replaced with "$!" (the
  35.           latest error message).
  36.  
  37.      setlogmask $mask_priority
  38.           Sets log mask $_m_a_s_k__p_r_i_o_r_i_t_y and returns the old mask.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.