MagicLogWatcher class

CrumbsWatcher for magic's Log facade, feeding CrumbsStore.recordLog.

crumbs' own LogWatcher listens to package:logging, which magic never writes to, so without this bridge crumbs:tail and tapir:console stay empty for a Magic app. install replaces the container's 'log' instance with a manager wrapping whatever was there (the real LogManager or a FakeLogManager); every driver it hands out forwards the call to the wrapped driver first, then records it.

A call the console driver's minLevel suppresses is still recorded: the buffer is a diagnostic view, not a copy of the console. Logs written before install ran (during Magic.init()) are not recorded. A Map or List context is masked by key before it is stored (the wrapped driver still gets it whole); the message text is not, since only a registered CrumbsRedaction.redactor touches free text. Log.unfake() drops the wrapper with the fake, so call install again after it.

Constructors

MagicLogWatcher()

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Human-readable watcher name.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

install() → void
Idempotent across instances: the guard is the container's own 'log' instance, which Magic.flush() drops together with the wrapper.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
uninstall() → void
Puts the wrapped manager back. A manager installed over the wrapper since (a later Log.fake()) is left alone.

Operators

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