Generates a trace message and sends it to the connector's trace destination.
Syntax
void generateAndTraceMsg(int msgNum, int msgType, int traceLevel, int argCount, ...);
Parameters
XRD_WARNING XRD_ERROR XRD_FATAL XRD_INFO XRD_TRACE
Tracing::LEVEL1 Tracing::LEVEL2 Tracing::LEVEL3 Tracing::LEVEL4 Tracing::LEVEL5
The method writes the trace message when the current trace level is greater than or equal to traceLevel.
Return values
None.
Notes
The generateAndTraceMsg() method combines the message generating and tracing functionality of generateMsg() and traceWrite(), respectively. It generates a message from a message file and then sends it to the trace destination. You establish the name of a connector's trace destination through the TraceFileName connector configuration property.
Connector messages logged with generateAndTraceMsg() are not viewable using LogViewer.
Examples
if(tracePtr->getTraceLevel()>= Tracing::LEVEL3) { // Message 3033 - Opened main form for object msg = generateAndTraceMsg(3033,CxMsgFormat::XRD_FATAL, Tracing::LEVEL3,0, NULL); }
See also