
Unified cross-platform logging solution simplifies message logging for Android and iOS with a single API, featuring color-coded log levels and platform-specific outputs for efficient debugging.
A small Kotlin Multiplatform logging library that gives Android and iOS apps one shared logging API.
LogKat lets shared Kotlin code write log messages without branching into platform-specific logging calls.
Add Maven Central to your repositories if it is not already configured:
repositories {
mavenCentral()
}Then add LogKat to the shared module:
commonMain.dependencies {
implementation("io.github.prashant17d97:logkat:1.0.0")
}import io.github.prashant17d97.logkat.LogKat
LogKat.v("Home", "Verbose message")
LogKat.d("Home", "Debug message")
LogKat.i("Home", "Screen opened")
LogKat.w("Home", "Unexpected response")
LogKat.e("Home", "Request failed")The same calls can be made from shared Kotlin code. LogKat routes the output to the platform's logging destination.
The screenshots below show sample output on each platform.
io.github.prashant17d97:logkat
A small Kotlin Multiplatform logging library that gives Android and iOS apps one shared logging API.
LogKat lets shared Kotlin code write log messages without branching into platform-specific logging calls.
Add Maven Central to your repositories if it is not already configured:
repositories {
mavenCentral()
}Then add LogKat to the shared module:
commonMain.dependencies {
implementation("io.github.prashant17d97:logkat:1.0.0")
}import io.github.prashant17d97.logkat.LogKat
LogKat.v("Home", "Verbose message")
LogKat.d("Home", "Debug message")
LogKat.i("Home", "Screen opened")
LogKat.w("Home", "Unexpected response")
LogKat.e("Home", "Request failed")The same calls can be made from shared Kotlin code. LogKat routes the output to the platform's logging destination.
The screenshots below show sample output on each platform.
io.github.prashant17d97:logkat