ISpectIsolateLogForwarder class final
Forwards every log its logger records to an ISpectIsolateLogReceiver on another isolate.
Each entry crosses the isolate boundary as one redacted JSON Lines record,
so the receiving isolate never sees values the export would mask. Builds
compiled without ISPECT_ENABLED send nothing.
final logger = ISpectLogger()
..addObserver(ISpectIsolateLogForwarder(sendPort));
- Inheritance
-
- Object
- ISpectObserver
- ISpectIsolateLogForwarder
Constructors
- ISpectIsolateLogForwarder(SendPort _port, {DiagnosticResourceLimits resourceLimits = DiagnosticResourceLimits.balanced})
-
const
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
ISpectLogData data) → void -
Called when an error-level log is reported.
override
-
onException(
ISpectLogData data) → void -
Called when an exception-level log is reported.
override
-
onLog(
ISpectLogData data) → void -
Called when a general log entry is recorded.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited