PVLogNicerPrinter class
Enhanced printer adapter that provides rich, formatted console output.
This Action adapter creates visually appealing log output with:
- Level-based icons for quick visual identification
- Formatted headers with namespace and scopes
- Stack trace information when available
- Bordered sections for clear separation
- Multi-line content formatting
The printer only operates in debug mode and uses formatted data from PVStdFormatter when available.
Example output:
================================
⚠️ app.auth user123 > login
main.dart:45 in loginUser
--------------------------------
{
"user": "john_doe",
"timestamp": "2023-10-01T12:00:00Z"
}
================================
- Inheritance
-
- Object
- PVLogAdapter
- PVLogNicerPrinter
- Mixed-in types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
intents
→ List<
AdapterIntent> -
The types of operations this adapter can perform.
no setterinherited
- isAsync → bool
-
Whether this adapter requires async processing.
no setterinherited
- levelFilter → int?
-
The minimum level required for events to be processed by this adapter.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
action(
PVLogEvent event) → void -
Prints the log event with enhanced formatting and visual elements.
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