generate kdocs

This commit is contained in:
2025-11-12 13:45:57 +06:00
parent 3c4e59ddc2
commit 7f92a3e614
16 changed files with 510 additions and 40 deletions

View File

@@ -1,7 +1,21 @@
package dev.inmo.kslog.common
/**
* Default logger for current platform. You may change it, but you should remember that it is global logger
* used in [KSLog.default] by default
* Platform-specific default logging implementation
*
* This is an `expect` declaration that provides platform-specific logging behavior:
* - **Android**: Uses `android.util.Log` (Log.d, Log.i, Log.w, Log.e, etc.)
* - **JVM**: Uses `java.util.logging.Logger`
* - **JS**: Uses browser `console` (console.debug, console.info, console.warn, console.error)
* - **Native/WASM**: Uses `println` for output
*
* This lambda is used by [DefaultKSLog] as the default logging backend when no custom
* logging function is provided.
*
* **Warning**: This is a global mutable variable. Changing it will affect all loggers
* that use the default platform logger. It's primarily used by [KSLog.default].
*
* @see DefaultKSLog
* @see KSLog.default
*/
expect var KSLoggerDefaultPlatformLoggerLambda: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit