Updated on 2022-03-13 GMT+08:00

Log Printing Format 5

Syntax

#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::Graph* graph, const uint32_t errorCode, const char* format, ...);

Parameter Description

Parameter

Description

Value Range

moudleID

Enumeration ID of the module name

-

graph

Pointer to the graph object

-

errorCode

Error code

-

format

Log description

-

...

Variable parameter in format, which is added based on the log content

-

Calling Example

auto graph = Graph::Getinstance(1);
HIAI_ENGINE_LOG(MODID_OTHER, graph.get(), HIAI_OK, "RUNNING OK");