mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-11-12 01:10:13 +00:00
accept string messages -> accept any object as message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: String, throwable: Throwable?) -> Unit = { l, t, m, e ->
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit = { l, t, m, e ->
|
||||
val args = e ?.let {
|
||||
arrayOf(m, e)
|
||||
} ?: arrayOf(m)
|
||||
|
||||
Reference in New Issue
Block a user