mirror of https://github.com/mkerrisk/man-pages
syslog.2: Rework text describing loglevels
The kernel header file mentioned in the discussion of the KERN_* constants has morphed and is no longer exported inside glibc. And the definitions of the constants themselves changed subtly with kernel commit 04d2c8c83d0e3ac5f78aeede51babb3236200112. So, rewrite the description of the constants to be a bit more abstract. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7fdbbd1ed4
commit
e32652ca9f
|
@ -1,3 +1,4 @@
|
|||
'\" t
|
||||
.\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl)
|
||||
.\"
|
||||
.\" %%%LICENSE_START(VERBATIM)
|
||||
|
@ -232,20 +233,21 @@ This level is
|
|||
(6) unless the line starts with <d>
|
||||
where \fId\fP is a digit in the range 1-7, in which case the level
|
||||
is \fId\fP.
|
||||
The conventional meaning of the loglevel is defined in
|
||||
.I <linux/kernel.h>
|
||||
as follows:
|
||||
The conventional meaning of the loglevel is as follows:
|
||||
|
||||
.nf
|
||||
#define KERN_EMERG "<0>" /* system is unusable */
|
||||
#define KERN_ALERT "<1>" /* action must be taken immediately */
|
||||
#define KERN_CRIT "<2>" /* critical conditions */
|
||||
#define KERN_ERR "<3>" /* error conditions */
|
||||
#define KERN_WARNING "<4>" /* warning conditions */
|
||||
#define KERN_NOTICE "<5>" /* normal but significant condition */
|
||||
#define KERN_INFO "<6>" /* informational */
|
||||
#define KERN_DEBUG "<7>" /* debug-level messages */
|
||||
.fi
|
||||
.TS
|
||||
lB lB lB
|
||||
lB c l.
|
||||
Kernel constant Level value Meaning
|
||||
KERN_EMERG 0 System is unusable
|
||||
KERN_ALERT 1 Action must be taken immediately
|
||||
KERN_CRIT 2 Critical conditions
|
||||
KERN_ERR 3 Error conditions
|
||||
KERN_WARNING 4 Warning conditions
|
||||
KERN_NOTICE 5 Normal but significant condition
|
||||
KERN_INFO 6 Informational
|
||||
KERN_DEBUG 7 Debug-level messages
|
||||
.TE
|
||||
.SH RETURN VALUE
|
||||
For \fItype\fP equal to 2, 3, or 4, a successful call to
|
||||
.BR syslog ()
|
||||
|
|
Loading…
Reference in New Issue