Use cciUserDebugTraceW to write a message from a message catalog (with inserts) to user trace when user trace is active at debug level. A message is also written to service trace, if service trace is active.
If user trace is not active at debug level, an entry is written to service trace when service trace is active at any level.
void cciUserDebugTraceW( int* returnCode, CciObject* object, const CciChar* messageSource, int messageNumber, const CciChar* traceText, ... );
None. If an error occurs, the returnCode parameter indicates the reason for the error.
const CciChar* myMessageSource=CciString("SwitchMSG",BIP_DEF_COMP_CCSID); CciNode* thisNode = ((NODE_CONTEXT_ST*)context)->nodeObject; const CciChar* traceText = CciString("Found an element name and value", BIP_DEF_COMP_CCSID); cciUserDebugTraceW(&rc, (CciObject*)thisNode, myMessageSource, 2, traceText, elementName, elementValue, (CciChar*)0);