Explanation added by Eric Tucker
This commit is contained in:
parent
9612909f62
commit
16b9d8fb94
@ -80,6 +80,13 @@ programs log with the mail facility
|
|||||||
.BR "" ( LOG_MAIL )
|
.BR "" ( LOG_MAIL )
|
||||||
if they log using syslog.
|
if they log using syslog.
|
||||||
|
|
||||||
|
In most cases anyone can log to any facility, so we rely on convention
|
||||||
|
for the correct facility to be chosen. However, generally only the
|
||||||
|
kernel can log to the "kern" facility. This is because the implementation
|
||||||
|
of openlog() and syslog() in glibc does not allow logging to the "kern"
|
||||||
|
facility. Klogd circumvents this restriction when logging to syslogd
|
||||||
|
by reimplementing those functions itself.
|
||||||
|
|
||||||
The
|
The
|
||||||
.I priority
|
.I priority
|
||||||
is one of the following keywords, in ascending order:
|
is one of the following keywords, in ascending order:
|
||||||
@ -232,9 +239,10 @@ kern.crit /dev/console
|
|||||||
kern.info;kern.!err /var/adm/kernel-info
|
kern.info;kern.!err /var/adm/kernel-info
|
||||||
.fi
|
.fi
|
||||||
.LP
|
.LP
|
||||||
The first rule direct any message that has the kernel facility to the
|
The first rule directs any message that has the kernel facility to the
|
||||||
file
|
file
|
||||||
.IR /var/adm/kernel .
|
.IR /var/adm/kernel .
|
||||||
|
(But recall that only the kernel itself can log to this facility.)
|
||||||
|
|
||||||
The second statement directs all kernel messages of the priority
|
The second statement directs all kernel messages of the priority
|
||||||
.B crit
|
.B crit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user