Prev | Current Page 908 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

10 or above, just define the
SM_LOG_STR compile-time macro when building sendmail:
define(`SM_LOG_STR??, `smtpd??)
??? The LOG_PID tells syslog that the PID (process identification number) should
be included when each message is written. This is necessary because sendmail
forks often, and each parent and child will have a different PID. Because queue
file identifiers are constructed from PIDs, this record helps to determine which
invocation of sendmail created a particular queued file. The PID also allows messages
from the daemon form of sendmail to be differentiated from others.
??? The facility for sendmail (and all mail-handling programs) is LOG_MAIL. We??™ll
show why this is important when we discuss the syslog.conf file.
Just before sendmail issues a warning, it looks at the logging level defined by its
LogLevel option (?§24.9.61 on page 1040). If the severity of the message or warning is
greater than the logging level, nothing is output. If the severity is less than or equal to
the logging level, sendmail issues that warning with a C-language call like this:
syslog(pri, msg);
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
14.3 Log with syslog | 515
Here, pri is the syslog logging priority, and msg is the text of the message or warning.
Note that the LogLevel option (?§24.


Pages:
896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920
dieta light mieszkania życzenia pozycjonowanie wierszyki