addMonitoredValue
Object log.addMonitoredValue ( String name, Object value ) (enterprise edition only)
Description
Adds a specific name and value to be logged with the web messages methods or logMonitoredValues method
Parameters
- name The name for the value being monitored
- value The value to associate with the given name
Return Value
The previous value associated with the name, or null if there wasn't one
Change Log
Version |
Description |
5.5.29a |
Available in all editions. |
5.5.42a |
Moved from session to log class. |
Examples
Add and log a value
// Setting a value this way will persist it across scripts.
// That way a future script could log the set, and any other values set.
log.addMonitoredValue("The dataSet", dataSet);
// Each time this method is called, it will log the above dataSet
log.logMonitoredValues();