Handler class
Composes a LogFormatter, a LogSink, and optional filters and decorators.
The Handler is the central orchestration unit in the logging pipeline. It filters incoming LogEntrys, transforms them using a LogFormatter, applies a sequence of LogDecorators, and finally sends the results to a LogSink.
- Implementers
- Annotations
-
- @immutable
Constructors
-
Handler({required LogFormatter formatter, required LogSink sink, List<
LogFilter> filters = const [], List<LogDecorator> decorators = const [], LogEngine engine = const StandardEngine(), Duration? timeout}) -
Creates a Handler.
const
Properties
-
decorators
→ List<
LogDecorator> -
A list of LogDecorators applied sequentially to the intermediate
LogDocument.
final
- engine → LogEngine
-
The execution strategy and scheduling model for the log pipeline.
final
-
filters
→ List<
LogFilter> -
A list of LogFilters evaluated sequentially before formatting
or decorating.
final
- formatter → LogFormatter
-
The LogFormatter used to transform an incoming LogEntry into a
semantic LogDocument (Semantic IR).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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.
final
- timeout → Duration?
-
The maximum duration permitted for processing a single log entry.
final
Methods
-
dispose(
) → Future< void> - Disposes of any resources held by this handler.
-
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.
override