ConsoleLogPrinter class

Printer to use in the printer field of Logger when instantiated.

Like the name says, it's to be used when printing logs in the console. It's not great to be used for writing to file due to the emojis and colors.

Constructors

ConsoleLogPrinter(String label)
A label is required for displaying who the logger is printing for.

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
Label for the log line.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
inherited
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

levelEmojis → const Map<Level, String>
Emojis to be printed to graphically show the gravity of the log message.