PrettyFormatter class

Implemented types

Constructors

PrettyFormatter({bool colors = true, int lineLength = 80, UnicodeBorderStyle borderStyle = UnicodeBorderStyle.light, int jsonIndent = 2, bool terseStackTracs = true})
Creates a new PrettyFormatter. The pretty formatter is focussed on increasing log readability
const

Properties

borderStyle → UnicodeBorderStyle
The style of the border
final
colors bool
Whether to use colors in the output.
final
hashCode int
The hash code for this object.
no setterinherited
jsonIndent int
The indent when the messages are formatted as json
final
lineLength int
The length of the output lines.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terseStackTracs bool
Whether to use terse stack traces. Terse stack traces remove frames from core dart libraries to be more readable.
final

Methods

createBody(NoticeRecord record) String
createBox(String header, List<String> parts, AnsiPen borderPen) String
createError(NoticeRecord record) String?
createHeader(NoticeRecord record) String
createStackTrace(NoticeRecord record) String?
format(NoticeRecord record, NoticeWriterContext context) String
Formats the record into a 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