EasyLogger class

日志处理

Implementers

Constructors

EasyLogger({EasyLogHandler? logger, EasyLogLevel? logLevel, String? logTag, String? logFilePath, int? logFileBackup, int? logFileMaxBytes})

Properties

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

Methods

logDebug(List args) → void
logError(List args) → void
logFatal(List args) → void
logInfo(List args) → void
logTrace(List args) → void
logWarn(List args) → void
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

printAndWriteLogger(EasyLogger instance, String msg, EasyLogLevel logLevel) → void
同时输出到控制台和写入到文件
printLogger(EasyLogger instance, String msg, EasyLogLevel logLevel) → void
使用print输出到控制台
stdoutAndWriteLogger(EasyLogger instance, String msg, EasyLogLevel logLevel) → void
同时输出到控制台和写入到文件
stdoutLogger(EasyLogger instance, String msg, EasyLogLevel logLevel) → void
使用stdout输出到控制台
writeLogger(EasyLogger instance, String msg, EasyLogLevel logLevel) → void
写入到日志文件,注意:为避免并发异步写入混乱,目前采用的全部是同步操作