PrettyFormatter class
Format log message.
Constructors
- PrettyFormatter({int maxPrettyLines = 20, int lineLength = 120, int stackTraceLevel = 10, MessageCallback? callerGetter = DogUtils.defaultCallerInfo})
Properties
- bottomBorder → String
-
└───────────
no setter
- callerGetter → MessageCallback?
-
Function to get caller info.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineLength → int
-
Each message line length.
final
- maxPrettyLines → int
-
If the pretty message lines exceed maxPrettyLines,
then back to normal message style.
final
- middleBorder → String
-
├┄┄┄┄┄┄┄┄┄┄┄
no setter
- prettyJsonEncoder → JsonEncoder
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTraceLevel → int
-
The level we will retrieve from StackTrace.
final
- topBorder → String
-
┌───────────
no setter
Methods
-
convertMessage(
dynamic message) → String -
convertStackTrace(
StackTrace stackTrace) → String - stackTraceLevel lines at most.
-
format(
Record record) → List< String> -
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
Constants
- bottomLeftCorner → const String
- dottedDivider → const String
- middleCorner → const String
- solidDivider → const String
- topLeftCorner → const String
- verticalLine → const String