1: /*
   2: **  SYSLOG.H -- declarations for system logging program
   3: **
   4: **	These are used as the first parameter to logmsg().
   5: **	Their meanings are approximately as follows:
   6: **
   7: **	LOG_ALERT -- this priority should essentially never
   8: **		be used.  It applies only to messages that
   9: **		are so important that every user should be
  10: **		aware of them, e.g., a serious hardware failure.
  11: **	LOG_SALERT -- messages of this priority should be
  12: **		issued only when immediate attention is needed
  13: **		by a qualified system person, e.g., when some
  14: **		valuable system resource dissappears.  They get
  15: **		sent to a list of system people.
  16: **	LOG_EMERG -- Emergency messages are not sent to users,
  17: **		but represent major conditions.  An example
  18: **		might be hard disk failures.  These could be
  19: **		logged in a separate file so that critical
  20: **		conditions could be easily scanned.
  21: **	LOG_ERR -- these represent error conditions, such as soft
  22: **		disk failures, etc.
  23: **	LOG_CRIT -- such messages contain critical information,
  24: **		but which can not be classed as errors, for example,
  25: **		'su' attempts.
  26: **	LOG_WARNING -- issued when an abnormal condition has been
  27: **		detected, but recovery can take place.
  28: **	LOG_NOTICE -- something that falls in the class of
  29: **		"important information"; this class is informational
  30: **		but important enough that you don't want to throw
  31: **		it away casually.
  32: **	LOG_INFO -- information level messages.  These messages
  33: **		could be thrown away without problems, but should
  34: **		be included if you want to keep a close watch on
  35: **		your system.
  36: **	LOG_DEBUG -- it may be useful to log certain debugging
  37: **		information.  Normally this will be thrown away.
  38: **
  39: **	It is expected that the kernel will not log anything below
  40: **	LOG_ERR priority.
  41: **
  42: **	@(#)syslog.h	4.1		7/25/83
  43: */
  44: 
  45: /* some configuration parameters..... */
  46: /* # define LOG_IPC			/* set if using 4.2 IPC, else mpx */
  47: /* # define LOG_HOST	"localhost"	/* name of host to log on */
  48: /* # define LOG_PORT	2222		/* port to run IPC over */
  49: 
  50: /* defines for priorities */
  51: # define    LOG_ALERT   1   /* alert -- send to all users */
  52: # define    LOG_SALERT  2   /* subalert -- send to special users */
  53: # define    LOG_EMERG   3   /* emergency conditions */
  54: # define    LOG_ERROR   4   /* error */
  55: # define    LOG_ERR     4   /* synonym of LOG_ERROR */
  56: # define    LOG_CRIT    5   /* critical information */
  57: # define    LOG_WARNING 6   /* warning */
  58: # define    LOG_NOTICE  7   /* important information */
  59: # define    LOG_INFO    8   /* informational message */
  60: # define    LOG_DEBUG   9   /* debug level info */
  61: 
  62: 
  63: /*
  64: **  Mode parameters to initlog.
  65: */
  66: 
  67: # define    LOG_NULL    0   /* don't touch log */
  68: # define    LOG_SOUT    1   /* log standard & diag output */
  69: # define    LOG_DIAG    2   /* log diagnostic output */
  70: # define    LOG_INDEP   3   /* log independently */
  71: # define    LOG_CLOSE   4   /* close the log */
  72: 
  73: /*
  74: **  Status parameters to initlog.
  75: */
  76: 
  77: # define    LOG_PID     0001    /* log the pid with each message */
  78: # define    LOG_TIME    0002    /* log the time with each message */
  79: # define    LOG_COOLIT  0004    /* suppress priority stuff */
  80: # define    LOG_DGRAM   0010    /* running over a datagram socket */

Defined macros

LOG_ALERT defined in line 51; never used
LOG_CLOSE defined in line 71; never used
LOG_COOLIT defined in line 79; never used
LOG_CRIT defined in line 56; never used
LOG_DEBUG defined in line 60; never used
LOG_DGRAM defined in line 80; never used
LOG_DIAG defined in line 69; never used
LOG_EMERG defined in line 53; never used
LOG_ERR defined in line 55; never used
LOG_ERROR defined in line 54; never used
LOG_INDEP defined in line 70; never used
LOG_INFO defined in line 59; never used
LOG_NOTICE defined in line 58; never used
LOG_NULL defined in line 67; never used
LOG_PID defined in line 77; never used
LOG_SALERT defined in line 52; never used
LOG_SOUT defined in line 68; never used
LOG_TIME defined in line 78; never used
LOG_WARNING defined in line 57; never used
Last modified: 1983-12-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 478
Valid CSS Valid XHTML 1.0 Strict