mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-09-15 13:09:26 +00:00
fixes
This commit is contained in:
@@ -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)
|
Reference in New Issue
Block a user