Logger class

Use instances of logger to send log messages to the LogPrinter.

Constructors

Logger()
factory

Properties

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

Methods

debug<E>(dynamic message, {String? tag, E? exception}) → void
调试日志
error<E>(dynamic message, {String? tag, E? exception}) → void
错误日志
fatal<E>(dynamic message, {String? tag, E? exception, dynamic errorMarkedMessage}) → void
致命错误
info(dynamic message, {String? tag}) → void
普通信息类日志
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
trace(dynamic message, {String? tag}) → void
堆栈日志
verbose<E>(dynamic message, {String? tag, E? exception}) → void
详细日志
warning(dynamic message, {String? tag}) → void
警告日志
wtf(dynamic message, {String? tag, dynamic errorMarkedMessage}) → void
正常情况下永远不会发生bug

Operators

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

Static Properties

instance → Logger
no setter