
posixMain.klog.posix.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of klog Show documentation
Show all versions of klog Show documentation
Kotlin multiplatform logging implementation
package klog
import klog.posix.threadID
import klog.posix.timeInMillisSinceEpoch
import kotlin.native.concurrent.ThreadLocal
import kotlin.reflect.KClass
@Suppress("NOTHING_TO_INLINE")
actual inline fun platformStatementContext(): StatementContext =
StatementContext("native", threadID().toString())
actual fun getTimeMillis(): Long = timeInMillisSinceEpoch().toLong()
@ThreadLocal
object PosixKLogRegistry : DefaultLogFactory()
actual fun createKLogRegistry(): KLogFactory = PosixKLogRegistry
actual fun KClass<*>.klogName(): String = qualifiedName!!.removeSuffix(".Companion")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy