LogEntry class

One recorded log line, as stored by a LoggerInterface implementation and rendered by the Logs tab.

Constructors

LogEntry({required String message, LogLevel level = LogLevel.debug, DateTime? timestamp, Set<LogTag> tags = const {}})
Creates a log entry. level defaults to LogLevel.debug and timestamp to now if not supplied.

Properties

hashCode → int
The hash code for this object.
no setterinherited
level → LogLevel
Severity used for the Logs tab's color coding and level filter.
final
message → String
The logged text.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → Set<LogTag>
Categories this entry belongs to, used by the Logs tab's tag filter.
final
timestamp → DateTime
When this entry was logged. Defaults to DateTime.now if omitted.
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