Logger class

企业级日志管理器

Constructors

Logger()
factory

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

clearAllLogs() Future<void>
清除所有日志
debug(String message, [Object? error, StackTrace? stackTrace]) → void
DEBUG级别日志
dispose() Future<void>
释放资源
error(String message, [Object? error, StackTrace? stackTrace]) → void
ERROR级别日志
exportLogs() Future<File?>
导出日志(用于分享给开发者)
getLogFiles() Future<List<String>>
获取所有日志文件路径
getMemoryLogs() List<String>
获取内存中的日志
info(String message, [Object? error, StackTrace? stackTrace]) → void
INFO级别日志
init() Future<void>
初始化日志系统
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMinLevel(LogLevel level) → void
设置最小日志级别
toString() String
A string representation of this object.
inherited
warning(String message, [Object? error, StackTrace? stackTrace]) → void
WARNING级别日志

Operators

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

Constants

logRetentionDays → const int
maxFileSize → const int
maxLogFiles → const int
maxMemoryLogs → const int