mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-09-15 13:09:26 +00:00
add native platforms support
This commit is contained in:
@@ -62,6 +62,9 @@ interface KSLog {
|
||||
operator fun KSLog.invoke(performLogCallback: (level: LogLevel, tag: String?, message: Any, throwable: Throwable?) -> Unit) = CallbackKSLog(performLogCallback)
|
||||
|
||||
internal expect val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
internal val printlnLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit = { l, t, m, e ->
|
||||
println(defaultMessageFormatter(l, t, m, e))
|
||||
}
|
||||
|
||||
fun KSLog(
|
||||
defaultTag: String,
|
||||
|
4
src/linuxArm32HfpMain/kotlin/DefaultLoggingActual.kt
Normal file
4
src/linuxArm32HfpMain/kotlin/DefaultLoggingActual.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
get() = printlnLogging
|
4
src/linuxArm64Main/kotlin/defaultLogging.kt
Normal file
4
src/linuxArm64Main/kotlin/defaultLogging.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
get() = printlnLogging
|
4
src/linuxX64Main/kotlin/defaultLogging.kt
Normal file
4
src/linuxX64Main/kotlin/defaultLogging.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
get() = printlnLogging
|
4
src/mingwX64Main/kotlin/defaultLogging.kt
Normal file
4
src/mingwX64Main/kotlin/defaultLogging.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
get() = printlnLogging
|
4
src/mingwX86Main/kotlin/defaultLogging.kt
Normal file
4
src/mingwX86Main/kotlin/defaultLogging.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
get() = printlnLogging
|
4
src/wasm32Main/kotlin/defaultLogging.kt
Normal file
4
src/wasm32Main/kotlin/defaultLogging.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
|
||||
get() = printlnLogging
|
Reference in New Issue
Block a user