ChatLogRecord class

A single structured log entry.

Constructors

ChatLogRecord({required DateTime timestamp, required ChatLogLevel level, required ChatLogTag tag, required String message, Map<String, Object?>? fields, Object? error, StackTrace? stackTrace})
const

Properties

error Object?
final
fields Map<String, Object?>?
Structured context — e.g. {'roomId': roomId, 'connId': 7}. Kept as a side map (rather than string-interpolated into message) so a sink that forwards to structured telemetry (Datadog, Firebase, …) can attach it as tags/attributes instead of re-parsing a formatted line.
final
hashCode int
The hash code for this object.
no setterinherited
level ChatLogLevel
final
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
final
tag ChatLogTag
final
timestamp DateTime
final

Methods

format() String
Renders a single human-readable line, e.g. 12:00:01.234 W [ws] {connId: 7} auth timeout.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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