Trace Method
The Trace method writes a message to the OpenROAD Trace window and/or the OpenROAD log file (%II_SYSTEM%\ingres\files\w4gl.log), depending upon the platform and the setting of the -T flag on the command line. For a description of the -T flag, see the Workbench User Guide.
This method has the following syntax:
ProcExec.Trace(text = nvarchar(2000) | string = StringObject[, destination = integer][, loglevel = integer])
This method has the following parameters:
text
Specifies the message to print. The message can be any expression that evaluates to an nvarchar string. You must cast numeric or date variables to varchar and enclose string literals in single quotes.
string
Specifies the string to print.
destination
Specifies the destination of the text or string to print:
TD_LOG
(Default) Writes output to log file/Trace window, depending on -L and -T command line flags. For a description of the -T flag, see the Workbench User Guide.
TD_STDOUT
Writes output to stdout
TD_STDERR
Writes output to stderr
loglevel
Defines the minimum LogLevel for which log or trace messages are written.
Messages are only written if the value passed is equal to or higher than the CurSession.LogLevel attribute, please see
LogLevel Attribute.
Default
LL_INFO
For descriptions of system constant values and their numeric equivalents are, please see
LogLevel constant.
The Trace method automatically appends a newline character to the end of the message.
Last modified date: 07/17/2025