Annotation of 42BSD/usr.lib/sendmail/include/syslog.h, revision 1.1

1.1     ! root        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 */

unix.superglobalmegacorp.com

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