[an error occurred while processing this directive][an error occurred while processing this directive]

Disabling Logging of a Facility

To disable the logging of messages that belong to a particular facility, include the facility none statement in the configuration. This statement is useful when, for example, you want to log messages that have the same severity level and belong to all but a few facilities. Instead of including a statement for each facility you want to log, you can include the any severity statement and then a facility none statement for each facility that you do not want to log. For example, the following logs all messages at the error level or higher to the console, except for messages from the daemon and kernel facilities. Messages from those facilities are logged to the file /var/log/internals instead:

[edit system syslog]
console {
	any error;
	daemon none;
	kernel none;
file internals {
	daemon info;
	kernel info;

Published: 2010-04-28

[an error occurred while processing this directive]