Log Printing Format 6
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::Engine* engine, const uint32_t errorCode, const char* format, ...);
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
moudleID |
Enumeration ID of the module name |
- |
engine |
Pointer to the engine object |
- |
errorCode |
Error code |
- |
format |
Log description |
- |
... |
Variable parameter in format, which is added based on the log content |
- |
Calling Example
// This API is called in HIAI_IMPL_ENGINE_PROCESS. HIAI_ENGINE_LOG(MODID_OTHER, this, HIAI_OK, "RUNNING OK");
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot