ConsoleEntry class final
One captured console line or page error from a live surface.
The shared vocabulary behind ConsoleLogReader: every transport that captures console output reports entries in this shape, so verification harnesses read one structure regardless of tier.
- Annotations
-
- @immutable
Constructors
- ConsoleEntry({required String source, required String level, required String text, required DateTime at})
-
Creates an entry.
const
Properties
- at → DateTime
-
Wall-clock time the entry was observed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → String
-
Severity as the source protocol reported it (
log,info,warning,error,debug); no normalization beyond the name.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
Where the entry came from:
console(a console API call),exception(an uncaught page exception), orlog(a browser log entry — network failures, parser errors).final - text → String
-
The rendered message text (argument values joined, exception
description, log entry text).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Canonical JSON shape.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited