mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-01-01 17:49:17 +00:00
generate kdocs
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user