/*++ /* NAME /* msg_rate_delay 3 /* SUMMARY /* diagnostic interface /* SYNOPSIS /* #include <msg.h> /* /* void msg_rate_delay(stamp, delay, log_fn, fmt, ...) /* time_t *stamp; /* int delay; /* void (*log_fn)(const char *fmt, ...); /* const char *fmt; /* DESCRIPTION /* msg_rate_delay() produces log output at a reduced rate: no /* more than one message per 'delay' seconds. It discards log /* output that would violate the output rate policy. /* /* This is typically used to log errors accessing a cache with /* high-frequency access but low-value information, to avoid /* spamming the logfile with the same kind of message. /* /* Arguments: /* .IP stamp /* Time stamp of last log output; specify a zero time stamp /* on the first call. This is an input-output parameter. /* This parameter is ignored when verbose logging is enabled /* or when the delay value is zero. /* .IP delay /* The minimum time between log outputs; specify zero to log /* all output for debugging purposes. This parameter is ignored /* when verbose logging is enabled. /* .IP log_fn /* The function that produces log output. Typically, this will /* be msg_info() or msg_warn(). /* .IP fmt /* Format string as used with msg(3) routines. /* SEE ALSO /* msg(3) diagnostics interface /* DIAGNOSTICS /* Fatal errors: memory allocation problem. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
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.