The System Logger (syslogd) and the syslog.conf File

System messages are logged to files in /var/log. The mechanism that does this is called syslogd, the system logger daemon. Its behaviors are set in /etc/syslog.conf, which defines various different log files for different services. Each service or facility that it knows about (which can be any of auth, authpriv, console, cron, daemon, ftp, kern, lpr, mail, mark, news, ntp, security, syslog, user, uucp, and local0 through local7) has a number of different severity levels for which you can control logging. These levels include emerg, alert, crit, err, warning, notice, info, and debug, listed in decreasing order of severity.

  • emerg— Emergency! If this ultimate severity message level is triggered, ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.