Logger class

Constructors

Logger()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 Methods

danger(dynamic message, [dynamic data]) → void
log the text using danger color (red)
info(dynamic message, [dynamic data]) → void
log the text using info color (lightblue)
log(String level, dynamic message, [dynamic data]) → void
shouldLog(String level, String minLevel) → bool
true when a line of level passes the minLevel setting. an unknown minLevel prints every line, so no log is lost.
success(dynamic message, [dynamic data]) → void
log the text using success color (green)
warn(dynamic message, [dynamic data]) → void
log the text using warn color (yellow)