mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-12-26 22:59:18 +00:00
a lot of changes and improvements
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<manifest/>
|
||||
@@ -2,8 +2,7 @@ package dev.inmo.kslog.common
|
||||
|
||||
import android.util.Log
|
||||
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit = { l, t, m, e ->
|
||||
actual var KSLoggerDefaultPlatformLoggerLambda: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit = { l, t, m, e ->
|
||||
val messageString = m.toString()
|
||||
when(l) {
|
||||
LogLevel.TRACE -> Log.d(t, messageString, e)
|
||||
@@ -14,4 +13,4 @@ internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any,
|
||||
LogLevel.ERROR -> Log.e(t, messageString, e)
|
||||
LogLevel.ASSERT -> Log.wtf(t, messageString, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user