addMonitoredVariable

void log.addMonitoredVariable ( String key ) (enterprise edition only)

Description

Watches the value of a session variable, and will output it each time monitored variables are output

Parameters

  • key The key in the session corresponding to a value

Return Value

This method returns void.

Change Log

Version Description
5.5.29a Available in all editions.
5.5.42a Moved from session to log class.

Examples

Watch a variable and log its value

 log.addMonitoredVariable("NAME");

 // Log the current value of NAME, as well as any other currently monitored values
 log.logMonitoredVariables();