LogOutput class abstract

  • @Author: chuxiong
  • @Created at: 2025/01/XX
  • @Email:
  • @Company: 嘉联支付
  • description 日志输出器接口 日志输出器抽象基类。子类实现 output 将一条 LogEntry 投递到目标 (控制台 / 文件 / 网络)。可选实现 initialize / dispose 管理资源。
Implementers

Constructors

LogOutput()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isConsole → bool
是否为控制台类输出器。
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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