/*++ /* NAME /* maillog_client 3 /* SUMMARY /* choose between syslog client and postlog client /* SYNOPSIS /* #include <maillog_client.h> /* /* int maillog_client_init( /* const char *progname, /* int flags) /* DESCRIPTION /* maillog_client_init() chooses between logging to the syslog /* service or to the internal postlog service. /* /* maillog_client_init() may be called before configuration /* parameters are initialized. During this time, logging is /* controlled by the presence or absence of POSTLOG_SERVICE /* in the process environment (this is ignored if a program /* runs with set-uid or set-gid permissions). /* /* maillog_client_init() may also be called after configuration /* parameters are initialized. During this time, logging is /* controlled by the "maillog_file" parameter value. /* /* Arguments: /* .IP progname /* The program name that will be prepended to logfile records. /* .IP flags /* Specify one of the following: /* .RS /* .IP MAILLOG_CLIENT_FLAG_NONE /* No special processing. /* .IP MAILLOG_CLIENT_FLAG_LOGWRITER_FALLBACK /* Try to fall back to writing the "maillog_file" directly, /* if logging to the internal postlog service is enabled, but /* the postlog service is unavailable. If the fallback fails, /* die with a fatal error. /* .RE /* ENVIRONMENT /* .ad /* .fi /* When logging to the internal postlog service is enabled, /* each process exports the following information, to help /* initialize the logging in a child process, before the child /* has initialized its configuration parameters. /* .IP POSTLOG_SERVICE /* The pathname of the public postlog service endpoint, usually /* "$queue_directory/public/$postlog_service_name". /* .IP POSTLOG_HOSTNAME /* The hostname to prepend to information that is sent to the /* internal postlog logging service, usually "$myhostname". /* CONFIGURATION PARAMETERS /* .ad /* .fi /* .IP "maillog_file (empty)" /* The name of an optional logfile. If the value is empty, or /* unitialized and the process environment does not specify /* POSTLOG_SERVICE, the program will log to the syslog service /* instead. /* .IP "myhostname (default: see 'postconf -d' output)" /* The internet hostname of this mail system. /* .IP "postlog_service_name (postlog)" /* The name of the internal postlog logging service. /* SEE ALSO /* msg_syslog(3) syslog client /* msg_logger(3) internal logger /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this /* software. /* AUTHOR(S) /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA /* /* Wietse Venema /* porcupine.org
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.