addMonitoredPrefix

void log.addMonitoredPrefix ( String prefix ) (enterprise edition only)

Description

Watches for all session variables whose keys begin with the prefix specified, and will output their values when monitored variables are logged.

Parameters

  • prefix The prefix to monitor

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 all variables starting with SEARCH_ and log their values

 log.addMonitoredPrefix("SEARCH_");

 // Log the current value of all session variables whose name starts with SEARCH_
 log.logMonitoredValues();