AppLogBuffer class
Bounded ring of app-side log events. Subscribes to the VM service's Stderr + Logging streams on subscribe and cancels them on unsubscribe. Survives glint session re-attach: the buffer itself outlives any one subscription.
Constructors
- AppLogBuffer({int capacity = 500})
Properties
- capacity → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
no setter
- nextSequence → int
-
no setter
-
onEntry
→ Stream<
AppLogEntry> -
Every entry as it is appended, in order, so watchers react without polling.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
{int? sinceSeq, AppLogStream? streamFilter, bool errorsOnly = false, int limit = 50}) → Iterable< AppLogEntry> -
scan(
{int? sinceSeq, AppLogStream? streamFilter, bool errorsOnly = false, String? contains, RegExp? pattern, int limit = 50}) → AppLogScan -
The last
limitentries that pass every filter, plus how many were scanned and how many matched beforelimitapplied. -
subscribe(
FlutterRuntime runtime) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited