Browse
 
Tools
Rss Categories

Logging Callback Function

Reference Number: AA-01046 Views: 2280 0 Rating/ Voters

The callback function is called by the speech port library with informational and error messages. It is set up in a call to LV_SRE_CreateClient or LVSpeechPort::CreateClient for port-level logging; and in a call to LV_SRE_RegisterAppLogMsg or LVSpeechPort::RegisterAppLogMsg for application-level logging.

  • typedef void (*ExportLogMsg)(const char* log_msg, void* user_data_ptr)

Parameters

log_msg

A logging message sent by the engine, usually containing additional error information.

user_data_ptr

A pointer to a user-defined class or function which can customize behavior when the engine sends logging messages to the callback.

See Also