add trace level

This commit is contained in:
2023-11-18 16:18:08 +06:00
parent 34a7c9624d
commit 7a8bd035f5
7 changed files with 34 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import android.util.Log
internal actual val defaultLogging: (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)
LogLevel.DEBUG -> Log.d(t, messageString, e)
LogLevel.VERBOSE -> Log.v(t, messageString, e)
LogLevel.INFO -> Log.i(t, messageString, e)