In the following discussion of syslog and syslog.conf, we will describe the BSD 4.4
version. Some versions of Unix, suchas Ultrix, use the 4.2 version of syslog, but
because syslog is public domain, we recommend you upgrade and will not cover that
old version here.
14.3.1 syslog(3)
The syslog(3) facility uses two items of information to determine how to handle messages:
facility and level. The facility is the category of program issuing a message. The
syslog facility can handle many categories, but only one, mail, is used by sendmail.
The level is the degree of severity of the warnings. The sendmail program issues messages
with syslog(3) at various levels depending on how serious the message or warning
is.
When sendmail first starts to run, it opens its connection to the syslog facility with
the following C-language line:
openlog("sendmail", LOG_PID, LOG_MAIL); ?†? prior to V8.10
openlog(SM_LOG_STR, LOG_PID, LOG_MAIL); ?†? V8.10 and later
This tells syslog three things:
??? Unless told otherwise with the -L command-line switch(?§6.7.30 on page 243), all
messages should be printed using sendmail as the name of the program doing the
logging. This means that regardless of what name is used to run sendmail (suchas
newaliases or smtpd), the name that is logged will always be either sendmail or a
name you specify. To specify a different name, withV8.
Pages:
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919