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

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendPort → SendPort
The port a background isolate forwards its logs to.
no setter

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 returns null in builds compiled without ISPECT_ENABLED, where no port is opened.