Skip to main content

User Log Reporting

  1. Add custom report codes in the configuration file first.

User log reporting

  1. Report logs using the log codes in the configuration file.
CMRC_DECLARE(cmrc_config);
// Initialize during Init first
void UserLogExampleInit(){
SINGLETON_INSTANCE(config::Config)->Init();
}
// Report log codes
void UserLogExample(){
SINGLETON_INSTANCE(config::Config)->Idle();

xcore_api::user_log::ReportUserLogAPI(1000000);
xcore_api::user_log::ReportUserLogAPI(1000000,"1000000.code","1000000");

xcore_api::user_log::ReportRunLogAPI(1000100);

assert(SINGLETON_INSTANCE(config::Config)->CheckUserLog() == true);
}

User log reporting HMI