ZenithLogEvent class
A structured log event containing message template, properties, timestamp, and exception details.
Constructors
-
ZenithLogEvent({required ZenithLogLevel level, required String template, required Map<
String, dynamic> properties, required DateTime timestamp, Object? error, StackTrace? stackTrace}) - Creates a ZenithLogEvent.
Properties
- error → Object?
-
Optional error object.
final
- formattedMessage → String
-
Evaluates the message template with property substitutions.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → ZenithLogLevel
-
Severity level of this event.
final
-
properties
→ Map<
String, dynamic> -
Structured properties associated with this log event.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Optional stack trace.
final
- template → String
-
Raw message template (e.g. "User {userId} checked out {amount}").
final
- timestamp → DateTime
-
Exact timestamp when the event occurred.
final
Methods
-
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