SETTRACECFG

  

DEVELOPER

 

 

Purpose

 

This dynamic tracing method sets the tracing configuration parameters for the session. The following are the valid parameters:

  • TR_PATH - the value is a string which sets the path as retrieved from the PROIV session.

  • TR_MAX_FILE_SIZE - the value must be a numeric integer which sets the value to the file size in mega-bytes (MB) for each trace log file in the PROIV session.

  • TR_MAX_FILES_PER_VM - the value must be a numeric integer which sets the value to the maximum number of trace log files for the session.

Object Type

Session

Syntax

SESSION.SetTracecfg(Variable,Value)

Remarks

N.B. When the last log file is full, the tracing starts deleting older files and reusing them (i.e. the process of creating log files is cyclical).

Example

Session.SetTraceCfg("TR_PATH", "C:\proivtrace2\") - Sets the tracing path for the current session

Session.SetTraceCfg("TR_MAX_FILE_SIZE", 10) - Sets the maximum allowed tracing file size for current session.

Session.SetTraceCfg("TR_MAX_FILES_PER_VM",5) - Sets the maximum allowed trace files for current session. The unit is specified in Megabytes.

Session.SetTraceCfg("TR_PATH", "") - sets the trace path to blank. This will stop the tracing for current session.
 

Comment on this topic

Topic ID: 510176