ZegoLogConfig class

日志配置

详情描述:调用 setLogConfig 自定义日志配置时,需要通过该参数配置。 业务场景:当需要自定义日志存储路径或日志文件大小上限时,需要这个配置。 注意事项:无。

Constructors

ZegoLogConfig(String logPath, int logSize, {int? logCount})

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
logCount ↔ int?
日志文件个数。默认是 3 个。取值范围是 3, 20
read / write
logPath ↔ String
日志文件的存储路径。详情描述:用于自定义日志文件的存储路径。业务场景:当需要自定义日志存储路径时,需要这个配置。是否必填:否。默认值:各平台的默认路径有所不同,具体参考官网文档 https://doc-zh.zego.im/faq/express_sdkLog 注意事项:开发者需要确保对该路径下文件的读写权限。
read / write
logSize ↔ int
日志文件大小上限,单位Bytes。详情描述:用于自定义日志文件大小上限。业务场景:当需要自定义日志文件大小上限时,需要这个配置。是否必填:否。默认值:5MB (5 * 1024 * 1024 Bytes)。取值范围:最小1MB (1 * 1024 * 1024 Bytes),最大100M (100 * 1024 * 1024 Bytes),0表示不需要写日志。注意事项:日志文件大小上限越大,承载的日志信息越多,但是日志上传时间也会更长。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited