LogEntry class

A single log entry. Always belongs to a LogScope.

Constructors

LogEntry({required DateTime time, required LogLevel level, required String message, required LogScope scope, Object? error, StackTrace? stackTrace, Map<String, Object?>? metadata})
Creates a log entry.
const

Properties

error Object?
Optional error associated with this entry.
final
hashCode int
The hash code for this object.
no setterinherited
level LogLevel
Severity of the entry.
final
message String
The log message.
final
metadata Map<String, Object?>?
Optional entry-level structured metadata.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope LogScope
Scope the entry was emitted from.
final
stackTrace StackTrace?
Optional stack trace captured alongside error.
final
time DateTime
Wall-clock time at which the entry was produced.
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