NetworkLogOutput class

网络输出器(尚未实现——占位类)

⚠️ 参见 FileLogOutput——直接构造会抛出 UnimplementedError。

Inheritance

Constructors

NetworkLogOutput({required String endpoint, Map<String, String>? headers, Duration timeout = const Duration(seconds: 30)})

Properties

endpoint → String
上报端点 URL。
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
自定义请求头。
final
isConsole → bool
是否为控制台类输出器。
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
请求超时时长。
final

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