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