ChatCallKitLogger class
ChatCallKit 日志工具类 功能:1. 控制台输出日志 2. 日志写入本地文件 3. 自动清理旧日志(防堆积)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cleanAllOldLogs(
) → Future< void> - 对外方法:手动清理所有旧日志(按需调用)
-
getCurrentLogFilePath(
) → Future< String> - 对外方法:获取当前日志文件路径(便于调试/导出)
-
log(
String content, {String tag = 'debug'}) → Future< void> -
核心日志方法:输出到控制台 + 写入文件
content日志内容tag日志标签(可选,便于分类) -
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
Static Properties
- enableLog ↔ bool
-
getter/setter pair
- instance → ChatCallKitLogger
-
final