ad_log_rate_limited (public)
ad_log_rate_limited [ -key key ] [ -interval interval ] severity \
messageDefined in packages/acs-tcl/tcl/utilities-procs.tcl
Log a message at most once per interval for the supplied key and severity, shared across connection threads of this server. Log the first occurrence immediately. Suppress subsequent calls within the interval and report their count with the next emitted message. The emitted message is the current call's message; suppressed message texts are not retained.
- Switches:
- -key (optional)
- stable identifier for the group of related messages
- -interval (optional, integer, defaults to
"60")- minimum interval between notices, in seconds; must be positive
- Parameters:
- severity (required)
- severity passed to ad_log
- message (required)
- message passed to ad_log
- Returns:
- 1 if ad_log was called, or 0 if the message was suppressed
- Author:
- Gustaf Neumann
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.