This commit is contained in:
InsanusMokrassar 2022-07-30 15:12:46 +06:00
parent 4d98b7df18
commit 8dc96f708e
2 changed files with 9 additions and 5 deletions

View File

@ -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)

View 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)