cciLogW
cciLogW logs an error, warning, or informational event. The event is logged by the integration node interface and uses the specified arguments as log data.
Syntax
void cciLogW(
int* returnCode,
CCI_LOG_TYPE type,
const char* file,
int line,
const char* function,
const CciChar* messageSource,
int messageNumber,
const CciChar* traceText,
...
);
Parameters
Return values
None. If an error occurs, the returnCode parameter indicates the reason for the error.
Example
void logSomethingWithBroker(CciChar* helpfulText,
char* file,
int line,
char* func
){
int rc = CCI_SUCCESS;
/* set up the message catalog name */
const CciChar* catalog = CciString("BIPmsgs", BIP_DEF_COMP_CCSID);
cciLogW(&rc,
CCI_LOG_INFORMATION
file, line, func,
catalog, BIP2111,
helpfulText,
helpfulText,
(CciChar*)0
);
if(CCI_SUCCESS != rc){
const CciChar* message = CciString("Failed to log message",
BIP_DEF_COMP_CCSID);
raiseExceptionWithBroker(message,
__FILE__,
__LINE__,
"logSomethingWithBroker");
}
}