PVLogJustPrinter class
Simple printer adapter that outputs formatted log data to console.
This Action adapter prints log events using Dart's print() function. It only operates in debug mode and supports level filtering. The printer uses formatted data created by PVStdFormatter if available, otherwise falls back to raw message formatting.
Features:
- Debug-mode only printing (respects kDebugMode)
- Level-based filtering
- Uses pre-formatted data when available
- Simple line-by-line output
- Inheritance
-
- Object
- PVLogAdapter
- PVLogJustPrinter
- Mixed-in types
Constructors
- PVLogJustPrinter({int level = 4})
- Creates a new PVLogJustPrinter with optional level filtering.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
intents
→ List<
AdapterIntent> -
The types of operations this adapter can perform.
no setteroverride
- isAsync → bool
-
Whether this adapter requires async processing.
no setterinherited
- level → int
-
The minimum level for events to be printed
final
- levelFilter → int?
-
The minimum level required for events to be processed by this adapter.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
action(
PVLogEvent event) → void -
Prints the log event to console.
override
-
actionAsync(
PVLogEvent event) → Future< void> -
Asynchronously processes a log 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