SingleFileLogger
将日志写入('append')到特定文件.
将日志写入('append')到特定文件.
将日志写入('append')到特定文件.
See also
Constructors
SingleFileLogger
Link copied to clipboard
SingleFileLogger
Link copied to clipboard
expect fun SingleFileLogger(identity: String, file: <ERROR CLASS> = File("$identity-${getCurrentDate()}.log"))
Content copied to clipboard
Functions
call
Link copied to clipboard
open override fun call(priority: SimpleLogger.LogPriority, message: String?, e: Throwable?)
Content copied to clipboard
根据优先级调用对应函数
open fun call(priority: SimpleLogger.LogPriority, message: String? = null, e: Throwable? = null)
Content copied to clipboard
根据优先级调用对应函数
open fun call(priority: SimpleLogger.LogPriority, message: String? = null, e: Throwable? = null)
Content copied to clipboard
根据优先级调用对应函数
debug
Link copied to clipboard
记录一个 调试 级别的日志.
记录一个 调试 级别的日志.
error
Link copied to clipboard
记录一个 错误 级别的日志.
记录一个 错误 级别的日志.
info
Link copied to clipboard
记录一个 信息 级别的日志.
记录一个 信息 级别的日志.
plus
Link copied to clipboard
添加一个 follower, 返回 follower 它只会把 this
的属性 MiraiLogger.follower 修改为这个函数的参数 follower, 然后返回这个参数. 若 MiraiLogger.follower 已经有值, 则会替换掉这个值.
添加一个 follower, 返回 follower 它只会把 this
的属性 MiraiLogger.follower 修改为这个函数的参数 follower, 然后返回这个参数. 若 MiraiLogger.follower 已经有值, 则会替换掉这个值.
添加一个 follower, 返回 follower 它只会把 this
的属性 MiraiLogger.follower 修改为这个函数的参数 follower, 然后返回这个参数. 若 MiraiLogger.follower 已经有值, 则会替换掉这个值.
verbose
Link copied to clipboard
记录一个 verbose
级别的日志. 无关紧要的, 经常大量输出的日志应使用它.
记录一个 verbose
级别的日志. 无关紧要的, 经常大量输出的日志应使用它.
warning
Link copied to clipboard
记录一个 警告 级别的日志.
记录一个 警告 级别的日志.
Properties
follower
Link copied to clipboard
follower
Link copied to clipboard
follower
Link copied to clipboard
isDebugEnabled
Link copied to clipboard
isDebugEnabled
Link copied to clipboard
isDebugEnabled
Link copied to clipboard
isEnabled
Link copied to clipboard
isEnabled
Link copied to clipboard
isEnabled
Link copied to clipboard
isErrorEnabled
Link copied to clipboard
isErrorEnabled
Link copied to clipboard
isErrorEnabled
Link copied to clipboard
isInfoEnabled
Link copied to clipboard
isInfoEnabled
Link copied to clipboard
isInfoEnabled
Link copied to clipboard
isVerboseEnabled
Link copied to clipboard
isVerboseEnabled
Link copied to clipboard
isVerboseEnabled
Link copied to clipboard
isWarningEnabled
Link copied to clipboard
isWarningEnabled
Link copied to clipboard
isWarningEnabled
Link copied to clipboard