TracerConsoleHandler class
A handler outputting the log events to the system console.
It uses TracerEventData.generatedMessageColored or TracerEventData.generatedMessage depending on the attribute useColors.
- Inheritance
-
- Object
- TracerHandler
- TracerConsoleHandler
Constructors
- TracerConsoleHandler({bool useColors = true, bool useStderr = false})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useColors → bool
-
Whether to use colors for the console outputting.
final
- useStderr → bool
-
Whether to use stderr and stdout for the outputting. Otherwise the default
print
function is used. This is useful if the platform doesn't support the direct stdout, like an Android app.final
Methods
-
handle(
TracerEventData data) → void -
The function handling the event.
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