AsyncHandler class base

A Handler that directly processes logs synchronously on the main thread under web/browser runtimes where standard isolates are unsupported.

Platform Architecture & Web Safety

Under browser/JS runtimes where Dart isolates are unsupported, AsyncHandler acts as a transparent, synchronous fall-through to the base Handler pipeline execution, running directly on the main event loop.

Lifecycle Management

Calling dispose on this stub disposes of the underlying sink cleanly.

Inheritance

Constructors

AsyncHandler({required LogFormatter formatter, required LogSink sink, List<LogFilter> filters = const [], List<LogDecorator> decorators = const [], LogEngine engine = const StandardEngine(), Duration? timeout})
Creates an AsyncHandler that defaults to main-thread processing under web platforms.
const

Properties

decorators → List<LogDecorator>
A list of LogDecorators applied sequentially to the intermediate LogDocument.
finalinherited
engine → LogEngine
The execution strategy and scheduling model for the log pipeline.
finalinherited
filters → List<LogFilter>
A list of LogFilters evaluated sequentially before formatting or decorating.
finalinherited
formatter → LogFormatter
The LogFormatter used to transform an incoming LogEntry into a semantic LogDocument (Semantic IR).
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
ready → Future<void>
A future that completes immediately on Web as no background isolate is started.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sink → LogSink
The target destination where formatted and decorated log output is written.
finalinherited
timeout → Duration?
The maximum duration permitted for processing a single log entry.
finalinherited

Methods

dispose() → Future<void>
Disposes of the handler resources by disposing the underlying sink.
override
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