summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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