System Administration Guide, Volume 2

How to Customize System Message Logging

  1. Become superuser.

  2. Using the editor of your choice, edit the /etc/syslog.conf file, adding or changing message sources, priorities, and message locations according to the syntax described in syslog.conf(4) .

  3. Exit the file, saving the changes.

Example--Customizing Message System Logging

This sample /etc/syslog.conf user.emerg facility sends user emergency messages to root and individual users.


user.emerg                                      `root, *'