mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 14:07:15 +00:00
addDefaultKSLog
This commit is contained in:
parent
34ea0bd91a
commit
194e52f521
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## 0.4.2
|
## 0.4.2
|
||||||
|
|
||||||
* Add `setDefaultKSLog`
|
* Add `setDefaultKSLog` and `addDefaultKSLog`
|
||||||
* Add `plus` operation for two `KSLog` instances to call them both on each log performing
|
* Add `plus` operation for two `KSLog` instances to call them both on each log performing
|
||||||
* Add `KSLog` factory for simple creation of `CallbackKSLog`
|
* Add `KSLog` factory for simple creation of `CallbackKSLog`
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package dev.inmo.kslog.common
|
package dev.inmo.kslog.common
|
||||||
|
|
||||||
import dev.inmo.kslog.common.filter.filtered
|
import dev.inmo.kslog.common.filter.filtered
|
||||||
|
import dev.inmo.kslog.common.utils.plus
|
||||||
|
|
||||||
|
|
||||||
enum class LogLevel {
|
enum class LogLevel {
|
||||||
@ -112,3 +113,4 @@ fun KSLog(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun setDefaultKSLog(newDefault: KSLog) { KSLog.default = newDefault }
|
fun setDefaultKSLog(newDefault: KSLog) { KSLog.default = newDefault }
|
||||||
|
fun addDefaultKSLog(newDefault: KSLog) { KSLog.default = KSLog.default + newDefault }
|
||||||
|
Loading…
Reference in New Issue
Block a user