跳到主要内容

用户日志上报

  1. 先在配置文件中加入自定义的上报码

用户日志上报

  1. 使用配置文件中的日志码上报
CMRC_DECLARE(cmrc_config);
//先在init阶段初始化
void UserLogExampleInit(){
    SINGLETON_INSTANCE(config::Config)->Init();
}
//上报日志码
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);
}

用户日志上报hmi