2 * xlog Logging functionality
4 * Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de>
10 /* These are logged always. L_FATAL also does exit(1) */
11 #define L_FATAL 0x0100
12 #define L_ERROR 0x0200
13 #define L_WARNING 0x0400
14 #define L_NOTICE 0x0800
17 /* These are logged if enabled with xlog_[s]config */
18 /* NB: code does not expect ORing together D_ and L_ */
19 #define D_GENERAL 0x0001 /* general debug info */
25 #define D_PARSE 0x0040
29 /* This can be used to define symbolic log names that can be passed to
31 struct xlog_debugfac {
36 void xlog_open(char *progname);
37 void xlog_stderr(int on);
38 void xlog_syslog(int on);
39 void xlog_config(int fac, int on);
40 void xlog_sconfig(char *, int on);
41 int xlog_enabled(int fac);
42 void xlog(int fac, const char *fmt, ...);