LogFileUtil class

描述:添加写文件在本地,仅保留7天内的日志

Constructors

LogFileUtil()

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

addCurl(String curl) → void
addLogFile(String text, {String subDir = 'log', bool append = true}) Future<void>
getAppDirectory({String subDir = 'log'}) Future<Directory>
android /android/data/xxx.xxx.package/files/log(subDir)
initLogger() Future<void>
listenLog(File file, String text, bool append) → void