mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-03-10 11:02:29 +00:00
generate kdocs
This commit is contained in:
@@ -2,6 +2,21 @@ package dev.inmo.kslog.common
|
||||
|
||||
import android.util.Log
|
||||
|
||||
/**
|
||||
* Android platform implementation of the default logger
|
||||
*
|
||||
* Uses Android's `[android.util.Log]` as the logging backend, mapping KSLog levels
|
||||
* to Android log levels:
|
||||
* - [LogLevel.TRACE] → [Log.d] (debug)
|
||||
* - [LogLevel.DEBUG] → [Log.d] (debug)
|
||||
* - [LogLevel.VERBOSE] → [Log.v] (verbose)
|
||||
* - [LogLevel.INFO] → [Log.i] (info)
|
||||
* - [LogLevel.WARNING] → [Log.w] (warning)
|
||||
* - [LogLevel.ERROR] → [Log.e] (error)
|
||||
* - [LogLevel.ASSERT] → [Log.wtf] (what a terrible failure)
|
||||
*
|
||||
* Logs can be viewed using `adb logcat` or Android Studio's Logcat window.
|
||||
*/
|
||||
actual var KSLoggerDefaultPlatformLoggerLambda: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit = { l, t, m, e ->
|
||||
val messageString = m.toString()
|
||||
when(l) {
|
||||
|
||||
Reference in New Issue
Block a user