MiraiLoggerPlatformBase
日志基类. 若 Mirai 自带的日志系统无法满足需求, 请继承这个类或 PlatformLogger 并实现其抽象函数.
这个类不应该被用作变量的类型定义. 只应被作为继承对象. 在定义 logger 变量时, 请一直使用 MiraiLogger 或者 MiraiLoggerWithSwitch.
See also
Inheritors
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