From 5c620e2dadc45e9ead078b044d36abaaab246c3f Mon Sep 17 00:00:00 2001 From: Chris Timmons Date: Tue, 27 Mar 2001 19:55:53 +0000 Subject: [PATCH] Document LOG_CONSOLE. --- lib/libc/gen/syslog.3 | 2 ++ usr.sbin/syslogd/syslog.conf.5 | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3 index e392a8719cd..23962cde9bb 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 c44142338ef..ea5f978e080 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