home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / syslog2b.zip / logger.man < prev    next >
Text File  |  1996-12-02  |  1KB  |  47 lines

  1. LOGGER(1)                    UNIX Reference Manual                   LOGGER(1)
  2.  
  3. NAME
  4.      logger - make entries in the system log
  5.  
  6. SYNOPSIS
  7.      logger [-is] [-f file] [-p pri] [-t tag] [message ...]
  8.  
  9. DESCRIPTION
  10.      Logger provides a shell command interface to the syslog(3) system log
  11.      module.
  12.  
  13.      Options:
  14.  
  15.      -i       Log the process id of the logger process with each line.
  16.  
  17.      -s       Log the message to standard error, as well as the system log.
  18.  
  19.      -f file  Log the specified file.
  20.  
  21.      -p pri   Enter the message with the specified priority.  The priority may
  22.               be specified numerically or as a ``facility.level'' pair.  For
  23.               example, ``-p local3.info'' logs the message(s) as informational
  24.               level in the local3 facility.  The default is ``user.notice.''
  25.  
  26.      -t tag   Mark every line in the log with the specified tag.
  27.  
  28.      message  Write the message to log; if not specified, and the -f flag is
  29.               not provided, standard input is logged.
  30.  
  31.      The logger utility exits 0 on success, and >0 if an error occurs.
  32.  
  33. EXAMPLES
  34.            logger System rebooted
  35.  
  36.            logger -p local0.notice -t HOSTIDM -f /dev/idmc
  37.  
  38. SEE ALSO
  39.      syslog(3),  syslogd(8)
  40.  
  41. STANDARDS
  42.      The logger command is expected to be IEEE Std1003.2 (``POSIX'') compati-
  43.      ble.
  44.  
  45. 4.3 Berkeley Distribution        June 6, 1993                                1
  46.  
  47.