mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-10-28 10:00:06 +00:00
rewrite way of filters work
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
typealias SimpleKSLogCallback = (level: LogLevel, tag: String?, message: Any, throwable: Throwable?) -> Unit
|
||||
|
||||
class CallbackKSLog(
|
||||
private val performLogCallback: (level: LogLevel, tag: String?, message: Any, throwable: Throwable?) -> Unit
|
||||
private val performLogCallback: SimpleKSLogCallback
|
||||
) : KSLog {
|
||||
override fun performLog(level: LogLevel, tag: String?, message: Any, throwable: Throwable?) = performLogCallback(level, tag, message, throwable)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user