LogEvent class
Represents a single log event.
message accepts any object. String transports call message.toString(); structured transports (e.g. HttpTransport) can inspect the runtime type to embed rich data directly in their payload.
Constructors
Properties
- context → String?
-
Optional label identifying the source of the event (e.g. class name).
final
- error → Object?
-
Optional exception or error associated with this event.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → LogLevel
-
Severity of this event.
final
- message → Object
-
Log payload. String transports call toString; structured transports
(e.g. HttpTransport) can inspect the runtime type to embed rich data.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Optional stack trace associated with error.
final
- timestamp → DateTime
-
When the event occurred. Defaults to DateTime.now at construction time.
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