LoggerEngine class

日志引擎核心类 负责事件收集、存储、管理

Constructors

LoggerEngine(LoggerConfig config)

Properties

config LoggerConfig
final
currentSessionId String
当前会话ID getter
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEvent(LogEvent event) → void
添加事件到缓冲区
clearLogs() Future<void>
清理所有日志
dispose() Future<void>
销毁资源
exportLogs({DateTime? startDate, DateTime? endDate}) Future<List<File>>
导出日志文件
getStatistics() LoggerStatistics
获取统计信息
initialize() Future<void>
初始化日志引擎
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
暂停日志记录
resume() → void
恢复日志记录
setEventEnabled(LogEventType eventType, bool enabled) → void
启用/禁用事件类型
setPrivacyLevel(PrivacyLevel level) → void
设置隐私级别
toString() String
A string representation of this object.
inherited

Operators

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