LogService class
日志服务
Properties
- dateRootPath ↔ String
-
日志根目录
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
) → Future< void> - 初始化
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeExpireLogFiles(
) → Future< void> - 移除过期日志
-
reportError(
String eventName, Object? error, StackTrace stackTrace) → Future< void> - 异常捕获
-
reportHttpRequest(
RequestOptions options) → Future< void> - HTTP 请求
-
reportHttpResponse(
Response response) → Future< void> - HTTP 响应
-
reportHttpResponseError(
DioException err) → Future< void> - HTTP 响应异常
-
reportInfo(
String eventName, dynamic content, {StackTrace? stackTrace}) → Future< void> - 信息
-
setupErrorHooks(
) → void - 错误钩子
-
toString(
) → String -
A string representation of this object.
inherited
-
writeDeviceInfo(
) → Future< void> - 写入设备 & 应用信息 & IP 地址
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → LogService
-
单例
no setter