更新时间:2021-03-18 GMT+08:00
分享

日志打印格式6

函数格式

#define HIAI_ENGINE_LOG(...) \

HIAI_ENGINE_LOG_IMPL(__FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__)

void HIAI_ENGINE_LOG_IMPL(const char* funcPointer, const char* filePath, int lineNumber,

const int32_t moudleID,hiai::Engine* engine, const uint32_t errorCode, const char* format, ...);

参数说明

参数

说明

取值范围

moudleID

模块名枚举ID

-

engine

Engine对象指针

-

errorCode

错误码

-

format

log描述

-

...

format中的可变参数,根据日志内容添加

-

调用示例

// 在HIAI_IMPL_ENGINE_PROCESS里调用此接口
HIAI_ENGINE_LOG(MODID_OTHER, this, HIAI_OK, "RUNNING OK");
分享:

    相关文档

    相关产品