mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 05:57:14 +00:00
fixes
This commit is contained in:
parent
4d98b7df18
commit
8dc96f708e
@ -2,7 +2,7 @@ package dev.inmo.kslog.common.filter
|
||||
|
||||
import dev.inmo.kslog.common.*
|
||||
|
||||
class FilterLogger(
|
||||
class FilterKSLog(
|
||||
private val fallbackLogger: KSLog,
|
||||
private val messageFilter: MessageFilter
|
||||
) : KSLog {
|
||||
@ -30,7 +30,3 @@ class FilterLogger(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun KSLog.filtered(
|
||||
filter: MessageFilter
|
||||
) = FilterLogger(this, filter)
|
||||
|
8
src/commonMain/kotlin/filter/FilteredExtension.kt
Normal file
8
src/commonMain/kotlin/filter/FilteredExtension.kt
Normal file
@ -0,0 +1,8 @@
|
||||
package dev.inmo.kslog.common.filter
|
||||
|
||||
import dev.inmo.kslog.common.KSLog
|
||||
import dev.inmo.kslog.common.MessageFilter
|
||||
|
||||
fun KSLog.filtered(
|
||||
filter: MessageFilter
|
||||
) = FilterKSLog(this, filter)
|
Loading…
Reference in New Issue
Block a user