File: logging.h

package info (click to toggle)
inn 1%3A1.7.2q-52
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,256 kB
  • sloc: ansic: 37,984; perl: 11,945; sh: 3,968; makefile: 2,009; awk: 1,567; yacc: 686; tcl: 85; csh: 70
file content (35 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*  $Revision: 1.8 $
**
**  The logging levels in syslog(3) are confusing.  We use only three,
**  and give them more meaningful names.  See section 2 in config.dist.
*/
#include <syslog.h>


/*
**  2.  LOGGING LEVELS
*/
    /* Facility innd should log under. */
    /* =()<#define LOG_INN_SERVER		@<LOG_INN_SERVER>@>()= */
#define LOG_INN_SERVER		LOG_NEWS
    /* Facility all other programs should log under. */
    /* =()<#define LOG_INN_PROG		@<LOG_INN_PROG>@>()= */
#define LOG_INN_PROG		LOG_NEWS
    /* Flags to use in opening the logs; some programs add LOG_PID. */
    /* =()<#define L_OPENLOG_FLAGS		@<L_OPENLOG_FLAGS>@>()= */
#define L_OPENLOG_FLAGS		(LOG_CONS | LOG_NDELAY)
    /* Fatal error, program is about to exit. */
    /* =()<#define L_FATAL		@<L_FATAL>@>()= */
#define L_FATAL		LOG_CRIT
    /* Log an error that might mean one or more articles get lost. */
    /* =()<#define L_ERROR		@<L_ERROR>@>()= */
#define L_ERROR		LOG_ERR
    /* Informational notice, usually not worth caring about. */
    /* =()<#define L_NOTICE		@<L_NOTICE>@>()= */
#define L_NOTICE		LOG_WARNING
    /* A protocol trace. */
    /* =()<#define L_TRACE		@<L_TRACE>@>()= */
#define L_TRACE		LOG_DEBUG
    /* All incoming control commands (ctlinnd, etc). */
    /* =()<#define L_CC_CMD		@<L_CC_CMD>@>()= */
#define L_CC_CMD		LOG_INFO