|
Voice SDK v3.7.1 API Reference for All Platforms (C++)
|
Public Member Functions | |
| LogConfig () | |
Public Attributes | |
| const char * | filePath |
| int | fileSize |
| LOG_LEVEL | level |
The configuration of the log files.
|
inline |
| const char* agora::rtc::LogConfig::filePath |
The absolute path of log files.
The default file path is:
/storage/emulated/0/Android/data/<package name>/files/agorasdk.logApp Sandbox/Library/caches/agorasdk.logApp Sandbox/Library/Logs/agorasdk.log, such as /Users/<username>/Library/Containers/<App Bundle Identifier>/Data/Library/Logs/agorasdk.log./Users/<username>/Library/Caches/<App Bundle Identifier>/Logs/agorasdk.log.C:\Users\<user_name>\AppData\Local\Agora\<process_name>\agorasdk.logEnsure that the directory for the log files exists and is writable. You can use this parameter to rename the log files.
| int agora::rtc::LogConfig::fileSize |
The size (KB) of a log file. The default value is 1024 KB. If you set fileSize to 1024 KB, the SDK outputs at most 5 MB log files; if you set it to less than 1024 KB, the setting is invalid, and the maximum size of a log file is still 1024 KB.