add a note about nsswitch.conf entry required for sudo-ldap
[debian/sudo] / sample.syslog.conf
1 # This is a sample syslog.conf fragment for use with Sudo.
2 #
3 # Sudo logs to local2 by default, but this is changable via the
4 # --with-logfac configure option.  To see what syslog facility
5 # a sudo binary uses, run `sudo -V' as *root*.  You may have
6 # to check /usr/include/syslog.h to map the facility number to
7 # a name.
8 #
9 # NOTES:
10 #       The whitespace in the following line is made up of <TAB>
11 #       characters, *not* spaces.  You cannot just cut and paste!
12 #
13 #       If you edit syslog.conf you need to send syslogd a HUP signal.
14 #       Ie: kill -HUP process_id
15 #
16 #       Syslogd will not create new log files for you, you must first
17 #       create the file before syslogd will log to it.  Eg.
18 #       'touch /var/log/sudo'
19
20 # This logs successful and failed sudo attempts to the file /var/log/sudo
21 local2.debug                                    /var/log/sudo
22
23 # To log to a remote machine, use something like the following,
24 # where "loghost" is the name of the remote machine.
25 local2.debug                                    @loghost