|
IoT SDK for Linux v1.9.7
|
#include <agora_rtc_api.h>
Data Fields | |
| bool | log_disable |
| bool | log_disable_desensitize |
| rtc_log_level_e | log_level |
| const char * | log_path |
| const char * | log_tag |
| int(*) | log_printf (const char *fmt,...) |
log config
| bool log_disable |
Whether to disable logging.
| bool log_disable_desensitize |
Whether to disable IP-address masking in logs.
| rtc_log_level_e log_level |
The log level. See rtc_log_level_e.
| const char* log_path |
The directory in which the Agora SDK stores logs. If log_path is NULL, logs are stored in the application's current working directory (pwd).
| int(*) log_printf(const char *fmt,...) |
(Optional) The log output function. Use this parameter when your application needs to manage SDK logs itself.
Implement a log output function and pass it to the SDK. The SDK delivers log messages through this callback. For example, you can write SDK messages into your application log and distinguish them by log_tag.
| const char* log_tag |
(Optional) The log tag, which appears at the beginning of each log line.