mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.utils
/
withSwitch
with
Switch
fun
MiraiLogger
.
withSwitch
(
default
:
Boolean
=
true
)
:
MiraiLoggerWithSwitch
给这个 logger 添加一个开关, 用于控制是否记录 log