Commit 0094307a authored by Him188's avatar Him188

Add MiraiLoggerWithSwitch.isEnabled

parent b479a213
......@@ -206,6 +206,8 @@ class MiraiLoggerWithSwitch internal constructor(private val delegate: MiraiLogg
@PublishedApi
internal var switch: Boolean = default
val isEnabled: Boolean get() = switch
fun enable() {
switch = true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment