BetterPrettyPrinter class
Default implementation of LogPrinter
.
Outut looks like this:
┌──────────────────────────
│ Error info
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Method stack history
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Log message
└──────────────────────────
Constructors
Properties
- colors → bool
-
final
- errorMethodCount → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineLength → int
-
final
- methodCount → int
-
final
- printEmojis → bool
-
final
- printTime → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
inherited
-
formatStackTrace(
StackTrace? stackTrace, int methodCount) → String? -
getTime(
) → String -
init(
) → void -
inherited
-
log(
LogEvent event) → List< String> -
Is called every time a new
LogEvent
is sent and handles printing or storing the message. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stringifyMessage(
dynamic message) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
levelColors
→ Map<
Level, AnsiColor> -
配色表:
final
-
levelEmojis
→ Map<
Level, String> -
final
Constants
- bottomLeftCorner → const String
- doubleDivider → const String
- middleCorner → const String
- singleDivider → const String
- topLeftCorner → const String
- verticalLine → const String