ns_logctl - Control buffering of log messages
TABLE OF CONTENTS
SYNOPSIS
DESCRIPTION
COMMANDS
EXAMPLES
SEE ALSO
KEYWORDS
|
This command provides control over the buffering of log messages generated by a thread instead of sending them directly to the log file. This allows functionality like displaying log messages at the end of an ADP page, for example.
<%
ns_logctl hold
... do some stuff here ...
%>;
<%
if {[ns_logctl count] > 0} {
ns_adp_puts "<hr>Page generated log messages:</p><pre>[ns_logctl peek]</pre>"
}
ns_logctl release
%>;
|