LogConfig
Configuration of 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);
}
Properties
- filePath
- Full path of the log file. Agora recommends using the default log path. If you need to change the default log path, make sure the specified path exists and is writable.
- fileSizeInKB
- Size of a single
agorasdk.loglog file, in KB. The range is [128, 20480], and the default value 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 automatically 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 log messages at FATAL, ERROR, and WARN levels.