DLogger class
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
Static Methods
-
clear()
→ void
-
清空所有日志
-
debug(Object message, {String title = '', bool hasPrintLog = true, dynamic hasWriteLog = true})
→ void
-
调试信息
-
error(Object message, {String title = '', bool hasPrintLog = true, dynamic hasWriteLog = true})
→ void
-
错误信息
-
info(Object message, {String title = '', bool hasPrintLog = true, dynamic hasWriteLog = true})
→ void
-
info信息
-
net({required String api, String url = '', String method = '', Object parameters = '', Object responseBody = '', int spendTime = 0, int statusCode = 100, bool showDetail = false, bool? hasPrintNet = true, bool? hasWriteNet = true})
→ void
-
接口日志
-
setLogConfig({bool? hasReverse, bool? hasPrintNet, bool? hasPrintLog, bool? hasWriteLog, bool? hasWriteNet, int? maxLimit})
→ void
-
设置日志配置信息
-
setLogEnabled(bool hasEnabled)
→ void
-
设置日志是否可用
-
warn(Object message, {String title = '', bool hasPrintLog = true, dynamic hasWriteLog = true})
→ void
-
警告信息