DirectoryLogger
class DirectoryLogger constructor(identity: String, directory: <ERROR CLASS>, retain: Long) : SimpleLogger
Content copied to clipboard
将日志写入('append')到特定文件夹中的文件. 每日日志独立保存.
See also
Constructors
DirectoryLogger
Link copied to clipboard
fun DirectoryLogger(identity: String, directory: <ERROR CLASS> = File(identity), retain: Long = 1.weeksToMillis)
Content copied to clipboard
Functions
call
Link copied to clipboard
open fun call(priority: SimpleLogger.LogPriority, message: String? = null, e: Throwable? = null)
Content copied to clipboard
根据优先级调用对应函数
plus
Link copied to clipboard
添加一个 follower, 返回 follower 它只会把 this
的属性 MiraiLogger.follower 修改为这个函数的参数 follower, 然后返回这个参数. 若 MiraiLogger.follower 已经有值, 则会替换掉这个值.
Properties
follower
Link copied to clipboard
isDebugEnabled
Link copied to clipboard
isEnabled
Link copied to clipboard
isErrorEnabled
Link copied to clipboard
isInfoEnabled
Link copied to clipboard
isVerboseEnabled
Link copied to clipboard
isWarningEnabled
Link copied to clipboard