Annotation of 42BSD/include/syslog.h, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.