mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-10-28 10:00:06 +00:00
start implement lazy messages api
This commit is contained in:
7
src/commonMain/kotlin/CallbackKSLog.kt
Normal file
7
src/commonMain/kotlin/CallbackKSLog.kt
Normal file
@@ -0,0 +1,7 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
class CallbackKSLog(
|
||||
private val performLogCallback: (level: LogLevel, tag: String?, message: String, throwable: Throwable?) -> Unit
|
||||
) : KSLog {
|
||||
override fun performLog(level: LogLevel, tag: String?, message: String, throwable: Throwable?) = performLogCallback(level, tag, message, throwable)
|
||||
}
|
||||
Reference in New Issue
Block a user