Agora Server Gateway SDK C++ API Reference
Public Member Functions | Public Attributes | List of all members
agora::commons::LogConfig Struct Reference

#include <IAgoraLog.h>

Public Member Functions

 LogConfig ()

Public Attributes

const char * filePath
uint32_t fileSizeInKB

Detailed Description

The configuration of the SDK log files.

Constructor & Destructor Documentation

◆ LogConfig()

agora::commons::LogConfig::LogConfig ( )

Member Data Documentation

◆ filePath

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.

◆ fileSizeInKB

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.

◆ level

LOG_LEVEL agora::commons::LogConfig::level

The output level of the SDK log file. See LOG_LEVEL.

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