System Projects Reference > Situational Awareness System Projects > Situational Awareness Include Project > Debug_Trace

Debug_Trace

Adds a trace message to the syslog.dat file. The message is classified by trace level, module and function.

Note: It is recommended that this function be used sparingly because it is called even when tracing is turned off.

Syntax

Debug_Trace(STRING sModule, STRING sFunction, STRING sMessage, INT nLevel=TRACE_Information)

sModule

The module of the function that generated the trace message.

sFunction

The function which generated the trace message.

sMessage

The trace message to output.

nLevel

The TRACE_<level> Labels defined in sa_include. See Debug_SetTraceLevel for the list of values.

Return Value

N/A.

Example

Debug_Trace("Workspace", "_Workspace_FindPane", "Pane '" + sSearchTerm + "' not found.", TRACE_Error);

Related Functions

Published June 2018