Under SunOS, the syslog.conf file is also complex because it is preprocessed by m4(1)
when it is read by syslog.
The file syslog.conf is composed of lines of text that each have the form:
facility.level target
The facility is the type of program that may be producing the message. The
facility called mail is the one that sendmail uses. For the complete list, see the
online manual for syslog.conf(5).
The level indicates the severity at or above which messages should be handled.
These levels correspond to the LogLevel option levels shown in Table 14-1 on
Table 14-1. L Levels versus syslog priorities
Level Priority
1 LOG_CRIT and LOG_ALERT
2??“8 LOG_NOTICE
9??“10 LOG_INFO
11+ LOG_DEBUG
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
516 | Chapter 14: Signals, Transactions, and Syslog
page 515. The complete list of syslog.conf levels used by sendmail is shown in
Table 14-2.
The target is one of the four possibilities shown in Table 14-3. The target and the
preceding level must be tuned for use by sendmail.
For example, the following syslog.conf line causes messages from ???mail??? (the facility)
that are at or above severity ???info??? (the level) to be appended to the file /var/log/syslog
(the target):
facility target
?†“ ?†“
mail.info /var/log/syslog
?†‘
level
A typical (albeit much simplified) /etc/syslog.
Pages:
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922