Agora Server Gateway SDK C++ API Reference
|
#include <IAgoraLog.h>
Public Member Functions | |
LogConfig () | |
Public Attributes | |
const char * | filePath |
uint32_t | fileSizeInKB |
LOG_LEVEL | level |
The configuration of the SDK log files.
|
inline |
const char* agora::commons::LogConfig::filePath |
The absolute or relative path of the log file, which ends with \ or /. Ensure that the path for the log file exists and is writable. You can use this parameter to rename the log files.
uint32_t agora::commons::LogConfig::fileSizeInKB |
The size (KB) of a log file. The default value is 2014 KB. If you set fileSize
to 1024 KB, the maximum aggregate size of the log files output by the SDK is 5 MB. If you set fileSize to less than 1024 KB, the setting is invalid, and the maximum size of a log file is still 1024 KB.