Class LogConfig

Configuration of Agora SDK log files.

Hierarchy

  • LogConfig

Constructors

Properties

Constructors

Properties

filePath?: string

The complete path of the log files. Ensure that the path for the log file exists and is writable. You can use this parameter to rename the log files.The default path is:Android:/storage/emulated/0/Android/data//files/agorasdk.log.iOS:App Sandbox/Library/caches/agorasdk.log.

fileSizeInKB?: number

The size (KB) of an agorasdk.log file. The value range is [128,1024]. The default value is 1,024 KB. If you set fileSizeInKByte smaller than 128 KB, the SDK automatically adjusts it to 128 KB; if you set fileSizeInKByte greater than 1,024 KB, the SDK automatically adjusts it to 1,024 KB.

level?: LogLevel

The output level of the SDK log file. See LogLevel .For example, if you set the log level to WARN, the SDK outputs the logs within levels FATAL, ERROR, and WARN.

Generated using TypeDoc