summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 21:39:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 21:39:43 +0000
commit63e39995e0b8a96f38147304319c23f803fe2b39 (patch)
tree8b2ac8f5b2251d1ef7bd83b202533cb01a439e5f
parent94f8a4b6f2266bb2b3b4a086daa3a18f6eddf351 (diff)
Sample lines for sudo and chat using !progname syntax
-rw-r--r--etc/syslog.conf11
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/syslog.conf b/etc/syslog.conf
index 69179f5d840..fa22aa1342b 100644
--- a/etc/syslog.conf
+++ b/etc/syslog.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: syslog.conf,v 1.5 1997/05/29 20:00:54 deraadt Exp $
+# $OpenBSD: syslog.conf,v 1.6 2000/04/02 21:39:42 millert Exp $
#
*.err;kern.debug;auth.notice;authpriv.none;mail.crit /dev/console
@@ -12,7 +12,6 @@ ftp.info /var/log/xferlog
lpr.debug /var/log/lpd-errs
mail.info /var/log/maillog
local0.info /var/log/ipflog
-#local2.debug /var/log/chat
#uucp.info /var/log/uucp
*.err root
@@ -28,3 +27,11 @@ local0.info /var/log/ipflog
#*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none @loghost
#kern.debug,user.info,syslog.info @loghost
#auth.info,authpriv.debug,daemon.info @loghost
+
+# Uncomment to log messages from sudo(8) and chat(8) to their own
+# respective log files. Matches are done based on the program name
+# Program-specific logs:
+#!sudo
+#*.* /var/log/sudo
+#!chat
+#*.* /var/log/chat