ad_log (public)
ad_log [ -key key ] [ -interval interval ] [ -plain ] severity \
[ args... ]Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Output ns_log message with detailed context. This function is intended to be used typically with "error" to ease debugging. Repeated messages are reported only once, with a reference to the first occurrence. When -key is supplied, rate-limit messages by severity and key across connection threads of this server. Log the first occurrence immediately, then suppress further messages within the interval. Include the suppressed count with the next emitted message. Without -key, logging behavior is unchanged. Suppressed message texts are not retained, and no summary is emitted until another call occurs after the interval.
- Switches:
- -key (optional)
- optional stable identifier for a group of related messages; avoid unbounded keys such as full request URLs
- -interval (optional, integer, defaults to
"60")- minimum logging interval in seconds, default 60 when -key is supplied; must be positive and requires -key
- -plain (optional, boolean)
- log the supplied message without adding request or call context. The normal NaviServer log prefix and any rate-suppression summary are retained.
- Parameters:
- severity (required)
- Severity level such as "error" or "warning".
- Author:
- Gustaf Neumann
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_folder_with_page, create_workflow_with_instance, create_form_with_form_instance