LoggingPrettyLogPrinter class

Default implementation of LoggingLogPrinter.

Output looks like this:

┌──────────────────────────
│ Error info
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Method stack history
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Log message
└──────────────────────────
Inheritance

Constructors

LoggingPrettyLogPrinter.new({int stackTraceBeginIndex = 0, int methodCount = 0, int errorMethodCount = 8, int lineLength = 80, bool colors = true, bool printEmojis = true, bool printTime = false, Map<LoggingLogLevel, bool> excludeBox = const {}, bool noBoxingByDefault = false, bool showLogLocation = true})
const

Properties

colors bool
final
errorMethodCount int
final
excludeBox Map<LoggingLogLevel, bool>
To prevent ascii 'boxing' of any log Level include the level in map for excludeBox, for example to prevent boxing of Level.verbose and Level.info use excludeBox:{Level.verbose:true, Level.info:true}
final
hashCode int
The hash code for this object.
no setterinherited
lineLength int
final
methodCount int
final
noBoxingByDefault bool
To make the default for every level to prevent boxing entirely set noBoxingByDefault to true (boxing can still be turned on for some levels by using something like excludeBox:{Level.error:false} )
final
printEmojis bool
final
printTime bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLogLocation bool
Whether to print log location to the right of the message
final
stackTraceBeginIndex int
The index which to begin the stack trace at
final

Methods

destroy() → void
inherited
formatMessage(dynamic message) String
formatStackTrace(List<LoggingTrace> stackTrace, int methodCount) String?
formatWidget(String widgetString, [int depth = 0]) String
getLogLocation() String?
getTime() String
init() → void
override
log(LoggingLogEvent logEvent) List<String>
Is called every time a new LoggingLogEvent is sent and handles printing or storing the message.
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

Static Properties

levelColors Map<LoggingLogLevel, AnsiColor>
final
levelEmojis Map<LoggingLogLevel, String>
final

Constants

bottomLeftCorner → const String
doubleDivider → const String
middleCorner → const String
singleDivider → const String
topLeftCorner → const String
verticalLine → const String