xref: /original-bsd/sys/sys/syslog.h (revision 3109f15a)
1 /*	syslog.h	4.4	85/02/25	*/
2 
3 /*
4  *  Declarations for system logging program
5  *
6  *	These are used as the first parameter to syslog().
7  */
8 
9 	/* kernel priorities */
10 #define	KERN_EMERG	1	/* emergency -- send to all users (wall) */
11 #define	KERN_ALERT	2	/* alert -- system failure */
12 #define	KERN_ERR	3	/* hard errors */
13 #define	KERN_FAIL	4	/* table full/overflow */
14 #define	KERN_RECOV	5	/* recoverable errors (softecc) */
15 #define	KERN_INFO	6	/* inconsistency/configuration error */
16 
17 	/* user abnormal conditions priorities */
18 #define	LOG_EMERG	7	/* system unusable -- send to all users */
19 #define	LOG_ALERT	8	/* missing files (e.g., /etc/utmp) */
20 #define	LOG_CRIT	9	/* critical conditions */
21 #define	LOG_ERR		10	/* init open faliures/fatal daemon errors */
22 #define	LOG_FAIL	11	/* getty failing, interface dropped */
23 #define	LOG_WARNING	12	/* non-fatal daemon errs */
24 
25 	/* user priorities */
26 #define	LOG_SALERT	13	/* important information */
27 #define	LOG_SECURITY	14	/* root/su logins */
28 #define	LOG_FIXED	15	/* abnormal condition fixed (recovery action) */
29 #define	LOG_MAIL	16	/* mail failures */
30 #define	LOG_REJECT	17	/* login/daemon rejections */
31 #define	LOG_NOTICE	18	/* important info */
32 
33 	/* user information priorities */
34 #define	LOG_INFO	19	/* informational message */
35 #define	LOG_INFO1	20	/* informational message */
36 #define	LOG_INFO2	21	/* informational message */
37 #define	LOG_INFO3	22	/* informational message */
38 #define	LOG_INFO4	23	/* informational message */
39 #define	LOG_INFO5	24	/* informational message */
40 
41 	/* user debug/local priorities */
42 #define	LOG_DEBUG	25	/* debugging info */
43 #define	LOG_LOCAL1	26	/* reserved for local use */
44 #define	LOG_LOCAL2	27	/* reserved for local use */
45 #define	LOG_LOCAL3	28	/* reserved for local use */
46 #define	LOG_LOCAL4	29	/* reserved for local use */
47 #define	LOG_LOCAL5	30	/* reserved for local use */
48 #define	LOG_LOCAL6	31	/* reserved for local use */
49 
50 /*
51  *  Option flags for openlog.
52  */
53 #define	LOG_PID		01	/* log the pid with each message */
54 #define	LOG_CONS	02	/* log on the console if errors in sending */
55 #define	LOG_ODELAY	04	/* delay open until syslog() is called */
56