xref: /freebsd/libexec/bootpd/syslog.conf (revision cddbc3b40812213ff00041f79174cac0be360a2a)
1#
2# syslog configuration file for SunOS 4.X
3# (modified to do local2 separately)
4#
5# This file is processed by m4 so be careful to quote (`') names
6# that match m4 reserved words.  Also, within ifdef's, arguments
7# containing commas must be quoted.
8#
9# Note: Have to exclude user from most lines so that user.alert
10#	and user.emerg are not included, because old sendmails
11#	will generate them for debugging information.  If you
12#	have no 4.2BSD based systems doing network logging, you
13#	can remove all the special cases for "user" logging.
14
15#*.err;kern.debug;auth.notice;user.none		/dev/console
16kern.debug;user,mail.crit;auth.notice		/dev/console
17daemon,syslog,lpr,news,uucp,cron.err		/dev/console
18
19#*.err;kern.debug;daemon,auth.notice;mail.crit;user.none /var/adm/messages
20kern.debug;user,mail.crit;auth.notice		/var/adm/messages
21daemon.notice;syslog,news,uucp,cron.err		/var/adm/messages
22
23lpr.debug					/var/adm/lpd-errs
24
25*.alert;kern.err;daemon.err;user.none		operator
26*.alert;user.none				root
27
28*.emerg;user.none				*
29
30# for loghost machines, to have authentication messages (su, login, etc.)
31# logged to a file, un-comment out the following line and adjust the file name
32# as appropriate.
33#
34# if a non-loghost machine chooses to have such messages
35# sent to the loghost machine, un-comment out the following line.
36#
37#auth.notice			ifdef(`LOGHOST', /var/log/authlog, @loghost)
38
39mail.debug			ifdef(`LOGHOST', /var/log/syslog, @loghost)
40
41# following line for compatibility with old sendmails.  they will send
42# messages with no facility code, which will be turned into "user" messages
43# by the local syslog daemon.  only the "loghost" machine needs the following
44# line, to cause these old sendmail log messages to be logged in the
45# mail syslog file.
46#
47ifdef(`LOGHOST',
48user.alert					/var/log/syslog
49)
50#
51# non-loghost machines will use the following lines to cause "user"
52# log messages to be logged locally.
53#
54ifdef(`LOGHOST', ,
55user.err					/dev/console
56user.err					/var/adm/messages
57user.alert					`root, operator'
58user.emerg					*
59)
60
61# Local2: (bootpd, pppd)
62local2.debug				/dev/console
63#local2.debug				/var/log/local2
64