LogEvent class

A log event that contains the log level, message, and optional error/stacktrace.

Constructors

LogEvent({required LogLevel level, required String message, Object? error, StackTrace? stackTrace})
Constructor

Properties

error → Object?
Optional error object
final
hashCode → int
The hash code for this object.
no setterinherited
level → LogLevel
The log level
final
message → String
The log message
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
Optional stack trace
final
timestamp → DateTime
Timestamp when the log was created
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