Skip to main content

User Log Reporting

  1. First, add custom report codes to the configuration file

User Log Reporting

  1. Use the log codes in the configuration file for reporting
CMRC_DECLARE(cmrc_config);
// Initialize in the init stage first
void UserLogExampleInit(){
SINGLETON_INSTANCE(config::Config)->Init();
}
// Report log code
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