LogConfig
Configuration of Agora SDK log files.
class LogConfig { const LogConfig({this.filePath, this.fileSizeInKB, this.level}); @JsonKey(name: 'filePath') final String? filePath; @JsonKey(name: 'fileSizeInKB') final int? fileSizeInKB; @JsonKey(name: 'level') final LogLevel? level; factory LogConfig.fromJson(Map<String, dynamic> json) => _$LogConfigFromJson(json); Map<String, dynamic> toJson() => _$LogConfigToJson(this); }
Attributes
- filePath
-
The complete path of the log files. Agora recommends using the default log directory. If you need to modify the default directory, ensure that the directory you specify exists and is writable.
- fileSizeInKB
- The size (KB) of an
agorasdk.log
file. The value range is [128,20480]. The default value is 2,048 KB. If you setfileSizeInKByte
smaller than 128 KB, the SDK automatically adjusts it to 128 KB; if you setfileSizeInKByte
greater than 20,480 KB, the SDK automatically adjusts it to 20,480 KB. - level
-
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.