LogConfig
Configuration of the SDK log file.
export class LogConfig {
filePath?: string;
fileSizeInKB?: number;
level?: LogLevel;
}
Properties
- filePath
- Full path of the log file. Agora recommends using the default log path. If you need to change the default path, make sure the specified path exists and is writable.
Default paths:
- Android: /storage/emulated/0/Android/data/<packagename>/files/agorasdk.log
- iOS: App Sandbox/Library/caches/agorasdk.log
- fileSizeInKB
- Size of a single
agorasdk.loglog file in KB. The value range is [128, 20480], and the default is 2,048 KB. If you setfileSizeInKByteto less than 128 KB, the SDK automatically adjusts it to 128 KB; if you set it to more than 20,480 KB, the SDK adjusts it to 20,480 KB. - level
- Log output level of the SDK. See LogLevel. For example, if you choose the WARN level, you will see all logs at FATAL, ERROR, and WARN levels.