SimpleLogger
open class SimpleLogger(val identity: String?, logger: (priority: SimpleLogger.LogPriority, message: String?, e: Throwable?) -> Unit) : MiraiLoggerPlatformBase
简易日志记录, 所有类型日志都会被重定向 logger
Inheritors
Constructors
Link copied to clipboard
constructor(identity: String?, logger: (priority: SimpleLogger.LogPriority, message: String?, e: Throwable?) -> Unit)
Functions
Link copied to clipboard
expect open fun call(priority: SimpleLogger.LogPriority, message: String? = null, e: Throwable? = null)
根据优先级调用对应函数
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
给这个 logger 添加一个开关, 用于控制是否记录 log
Properties
Link copied to clipboard
当 DEBUG 级别的日志启用时返回 true
Link copied to clipboard
获取 MiraiLogger 是否已开启
Link copied to clipboard
当 ERROR 级别的日志启用时返回 true
Link copied to clipboard
当 INFO 级别的日志启用时返回 true
Link copied to clipboard
当 VERBOSE 级别的日志启用时返回 true
.
Link copied to clipboard
当 WARNING 级别的日志启用时返回 true