LogReportEntry class

单条上报数据。level 取 logger 包 Level.value,timeMs 为毫秒时间戳。

注意:插件内已存在 UI 用途的 LogEntry(enhanced_log_viewer.dart 并已导出), 为保持零破坏的公共导出,本类命名为 LogReportEntry,避免顶层符号冲突。

Constructors

LogReportEntry({required String topic, required Map<String, String> fields, required int level, required int timeMs})

Properties

approxBytes → int
粗略字节数:按 UTF-16 长度估算,仅用于字节触发判断,不要求精确。
no setter
fields → Map<String, String>
final
hashCode → int
The hash code for this object.
no setterinherited
level → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeMs → int
final
topic → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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