ConsoleLogOutput class

控制台输出器:通过 developer.log 输出(避免被 debugPrint 拦截器再次捕获)。

Inheritance

Constructors

ConsoleLogOutput({bool enableColor = true})

Properties

enableColor → bool
是否带 ANSI 颜色(按级别着色)。
final
hashCode → int
The hash code for this object.
no setterinherited
isConsole → bool
是否为控制台类输出器。
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
销毁输出器(如 flush / 关闭流)。默认空实现。
inherited
initialize() → Future<void>
初始化输出器(如打开连接 / 文件)。默认空实现。
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
output(LogEntry entry) → Future<void>
输出一条日志条目。
override
toString() → String
A string representation of this object.
inherited

Operators

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