start implement lazy messages api

This commit is contained in:
2022-06-09 09:56:27 +06:00
parent 88859ffab8
commit 10576d32f6
4 changed files with 62 additions and 22 deletions

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