summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcwt <cwt@FreeBSD.org>2001-03-27 19:55:53 +0000
committercwt <cwt@FreeBSD.org>2001-03-27 19:55:53 +0000
commita7847b560691a2f312ff3a6ab5003c4bdd26ef9a (patch)
treebd66113784c174cbcc36a53ad547088cb08fcac6
parentf767ca7e60f2f04f4d7f30da195b56abab4296df (diff)
downloadFreeBSD-src-a7847b560691a2f312ff3a6ab5003c4bdd26ef9a.zip
FreeBSD-src-a7847b560691a2f312ff3a6ab5003c4bdd26ef9a.tar.gz
Document LOG_CONSOLE.
-rw-r--r--lib/libc/gen/syslog.32
-rw-r--r--usr.sbin/syslogd/syslog.conf.59
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3
index e392a87..23962cd 100644
--- a/lib/libc/gen/syslog.3
+++ b/lib/libc/gen/syslog.3
@@ -177,6 +177,8 @@ The same as
.Dv LOG_AUTH ,
but logged to a file readable only by
selected individuals.
+.It Dv LOG_CONSOLE
+Messages written to /dev/console by the kernel console output driver.
.It Dv LOG_CRON
The cron daemon:
.Xr cron 8 .
diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5
index c441423..ea5f978 100644
--- a/usr.sbin/syslogd/syslog.conf.5
+++ b/usr.sbin/syslogd/syslog.conf.5
@@ -100,9 +100,9 @@ are case insensitive.
The
.Em facility
describes the part of the system generating the message, and is one of
-the following keywords: auth, authpriv, cron, daemon, ftp, kern, lpr, mail,
-mark, news, ntp, syslog, user, uucp, security and local0 through local7.
-These keywords (with the exception of mark) correspond to the
+the following keywords: auth, authpriv, console, cron, daemon, ftp, kern,
+lpr, mail, mark, news, ntp, security, syslog, user, uucp and local0 through
+local7. These keywords (with the exception of mark) correspond to the
similar
.Dq Dv LOG_
values specified to the
@@ -389,6 +389,9 @@ auth.* |exec /usr/local/sbin/authfilter
# Log all security messages to a separate file.
security.* /var/log/security
+
+# Log all writes to /dev/console to a separate file.
+console.* /var/log/console.log
.Ed
.Sh IMPLEMENTATION NOTES
The
OpenPOWER on IntegriCloud