ViewerBridgeOutput class

  • @Author: chuxiong
  • @Created at: 2026/10/27
  • @Email:
  • @Company: 嘉联支付
  • description 日志查看器桥接输出器:把分发到的条目以广播流喂给查看器面板 日志查看器桥接输出器:挂在 LogCollector 的输出器列表上,把每条分发到 本输出器的 LogEntry 原样投到广播流 stream,供查看器面板订阅实时刷新。

isConsole 刻意不 override(保持基类默认 false)——分发层只对 isConsole == true 的输出器跳过 suppressConsole 条目,桥接输出器因此 对全部条目(含压制控制台的条目)照常广播,面板与存储看到同一份完整流水。

广播流不缓存历史事件:订阅必须先于日志产生;晚到的订阅者只收此后的新 条目(历史条目走存储查询,不靠流回放)。

Inheritance

Constructors

ViewerBridgeOutput()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isConsole → bool
是否为控制台类输出器。
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → Stream<LogEntry>
桥接广播流:查看器面板订阅此流即可实时拿到所有分发条目。
no setter

Methods

dispose() → Future<void>
销毁输出器(如 flush / 关闭流)。默认空实现。
override
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