ISpectIsolateLogReceiver class final
Adds logs sent from other isolates to a logger on the current isolate.
Pass sendPort to the background isolate and attach an
ISpectIsolateLogForwarder to the logger there. Entries arrive redacted
and bounded by that isolate's export, keep their time, level, and key, and
are recorded with ISpectLogger.logData. A message that is not a log
record, or is longer than maxImportCharacters, is dropped with a warning.
Properties
Methods
-
close(
) → void - Stops receiving. Logs sent afterwards are dropped.
-
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
Static Methods
-
open(
ISpectLogger logger, {DiagnosticResourceLimits resourceLimits = DiagnosticResourceLimits.balanced}) → ISpectIsolateLogReceiver? -
Opens a receiver for
logger, or returnsnullin builds compiled withoutISPECT_ENABLED, where no port is opened.