LogEvent class
Represents a single log entry.
Constructors
-
LogEvent({required LogLevel level, required String message, Object? error, StackTrace? stackTrace, ProviderContext? context, Map<
String, dynamic> ? extra, DateTime? time}) - Creates a LogEvent.
Properties
- context → ProviderContext?
-
The ProviderContext captured at the time of logging.
final
- error → Object?
-
An optional error object.
final
-
extra
→ Map<
String, dynamic> ? -
Additional structured metadata.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → LogLevel
-
The severity LogLevel of the event.
final
- message → String
-
The log message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
An optional stack trace.
final
- time → DateTime
-
The 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited