GuestLogs class

Keeps what the preview printed, where it can be asked for.

The gap this closes. The guest's print reached the host's console and nowhere else — the GUI could not show it, fw could not return it, and an agent driving a demo could not read the one thing a developer reaches for first. The host does hold the guest's stdout, but only because the host spawned it: a reader attached to a session somebody else is driving has a VM service URI and nothing more. So the buffer has to be in the guest, exactly as GuestErrors' is, and for the same reason.

Both pulled and pushed. The buffer answers "what has been printed"; the events say "and here is another one" without waiting for a poll. A console that lagged three seconds behind the demo would be a console nobody trusts, and the measurement behind GuestWatch already established that the event channel carries 60Hz without batching. A reader takes the buffer and subscribes at the same moment, and drops the overlap by InspectLogLine.sequence.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Forgets everything, keeping the entry — the console's own clear button.
describe() → InspectLogs
install<R>(R body()) → R
Runs body in a zone whose print is recorded as well as printed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerExtensions() → void
Registers the extensions. Call once, before runApp.
resetFor(String entryId) → void
Forgets the previous entry's output.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance → GuestLogs
final

Constants

eventKind → const String
The event a console subscribes to.