将消息目录(带插入内容)中的消息写到用户跟踪中。如果服务跟踪处于活动状态,消息也会写到服务跟踪。
写到用户跟踪的消息具有以下格式:
<date-time stamp> <threadNumber> UserTrace <Message text with inserts> <Message Explanation>
void cciUserTraceW( int* returnCode, CciObject* object, const CciChar* messageSource, int messageNumber, const CciChar* traceText, ... );
const CciChar* myMessageSource=CciString("SwitchMSG",BIP_DEF_COMP_CCSID); const CciChar* text = CciString("propagating to add terminal", BIP_DEF_COMP_CCSID); const CciChar* insert = CciString("add", BIP_DEF_COMP_CCSID); CciNode* thisNode = ((NODE_CONTEXT_ST*)context)->nodeObject; int rc = CCI_SUCCESS; cciUserTrace(&rc, (CciObject*)thisNode, myMessageSource, 1, text, insert, (CciChar*)0); checkRC(rc);