Anota un error, un aviso o un suceso informativo. La interfaz de intermediario de mensajes anota el suceso utilizando los argumentos especificados como datos de anotaciones.
void cciLogW( int* returnCode, CCI_LOG_TYPE type, const char* file, int line, const char* function, const CciChar* messageSource, int messageNumber, const CciChar* traceText, ... );
Ninguno. Si se produce un error, el parámetro returnCode indica la razón del mismo.
void logSomethingWithBroker(CciChar* helpfulText, char* file, int line, char* func ){ int rc = CCI_SUCCESS; /* definir el nombre de catálogo de mensajes */ const CciChar* catalog = CciString("BIPv600", 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("Error al anotar mensaje", BIP_DEF_COMP_CCSID); raiseExceptionWithBroker(message, __FILE__, __LINE__, "logSomethingWithBroker"); } }