Logger class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
danger (dynamic message , [dynamic data , String ? tag ])
→ void
log the text using danger color (red)
info (dynamic message , [dynamic data , String ? tag ])
→ void
log the text using info color (lightblue)
log (String level , dynamic message , [dynamic data , String ? tag ])
→ void
tag names where the line comes from, like request or server.
No tag gives app. It is the third positional argument, because
Dart does not allow a named argument next to the optional data.
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 , String ? tag ])
→ void
log the text using success color (green)
warn (dynamic message , [dynamic data , String ? tag ])
→ void
log the text using warn color (yellow)