IoT SDK for Linux v1.9.7
Loading...
Searching...
No Matches
log_config_t Struct Reference

#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,...)

Detailed Description

log config

Field Documentation

◆ log_disable

bool log_disable

Whether to disable logging.

  • true: Disable logging.
  • false: Enable logging.

◆ log_disable_desensitize

bool log_disable_desensitize

Whether to disable IP-address masking in logs.

  • true: Disable IP-address masking.
  • false: Enable IP-address masking.

◆ log_level

rtc_log_level_e log_level

The log level. See rtc_log_level_e.

◆ log_path

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).

◆ log_printf

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.

Note
This parameter does not affect SDK log-file generation. Whether or not it is set, the SDK generates log files in log_path.

◆ log_tag

const char* log_tag

(Optional) The log tag, which appears at the beginning of each log line.


The documentation for this struct was generated from the following file: