SDK Logging
Updated at:2025-11-03
SDK logging
C++
1// Set log
2 FILE *logfp = fopen("sdk.log", "w");//Set log output file
3 sdk_set_log_stream(logfp);//Set output stream
4 sdk_set_log_level(SDK_LOG_DEBUG);//Set log level
There are five log levels in total:
- SDK_LOG_DEBUG
- SDK_LOG_INFO
- SDK_LOG_WARN
- SDK_LOG_ERROR
- SDK_LOG_FATAL
If you have unexpected issues in the use process and need to locate them, it is recommended to adjust the log level to the SDK_LOG_DEBUG for preliminary judgment
