On this page
Overview
kotlin-logging is a lightweight logging facade for Kotlin. On JVM it wraps SLF4J and adds lazy message lambdas, logger creation without manually repeating class names, exception logging, and fluent Kotlin-style logging.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Key features
Avoid evaluating message lambdas when a log level is disabled
Calls such as logger.debug { ... } defer message construction so expensive values are not evaluated when the level is disabled.
Sources: [1]
Keep existing SLF4J implementations behind a Kotlin-oriented facade
On JVM, teams can continue using SLF4J-compatible implementations such as Logback or Log4j while writing logging code through Kotlin-friendly APIs.
Sources: [1]
Best fit
Fits Kotlin backends that want less logging boilerplate
File-level loggers, exception-first calls, and fluent payload APIs help standardize logging syntax across Kotlin services.
Sources: [1]
Before adoption
Provide an SLF4J implementation at runtime on JVM
The README explains that the JVM artifact depends on slf4j-api and an actual logging implementation must also be supplied at runtime.
Sources: [1]
Official sources
- [1]kotlin-logging README(2026-10-06)
- [2]kotlin-logging 8.0.4 release(2026-10-06)
Supplemental curator note
It fits Kotlin/JVM teams that want less SLF4J boilerplate. Supply an SLF4J implementation at runtime and note that multiplatform support is described as experimental in the README.
Try it in 3 steps
- 1
Get the source
git clone --depth 1 https://github.com/oshai/kotlin-logging.git - 2
Enter the repository
cd kotlin-logging - 3
Check the official steps
Continue with the commands in the README Installation, Quick Start, or Getting Started section.
find . -maxdepth 1 -iname 'README*' -exec sed -n '1,220p' {} \; -quit
Growth
Growth trends · Last 30 days
3,113 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 0
- Open PRs
- 10
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- kotlin
- slf4j
- logging
- jvm
- android
- multiplatform
- Stars
- 3,113
- Forks
- 131
- Watchers
- 19
- Open issues
- 11
- Contributors
- 45
- Owner type
- User
- Primary language
- Kotlin
- License
- Apache-2.0
- Repository last updated
- May 27, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- Android Jetpack (AndroidX)6,106 Stars
1 shared tag(s) · 1 shared category(s) · Same language
use independently released Jetpack libraries for Android UI, architecture, data, and background work across platform versions
Kotlin - kotlinx.serialization5,948 Stars
1 shared tag(s) · 1 shared category(s) · Same language
Generate multi-format encoding and decoding code from Kotlin types
Kotlin - MockK5,762 Stars
1 shared tag(s) · 1 shared category(s) · Same language
mock, stub, and verify Kotlin collaborators with coroutine and Android support
Kotlin - Kotest4,789 Stars
1 shared tag(s) · 1 shared category(s) · Same language
combine spec styles, assertions, and property testing across Kotlin projects
Kotlin - http4k2,791 Stars
1 shared tag(s) · 1 shared category(s) · Same language
serve, consume, and test HTTP services as Kotlin functions
Kotlin - Timber10,853 Stars
2 shared tag(s) · 2 shared category(s) · Same language
Organize Android logging through a small API and replaceable output trees
Kotlin
Report incorrect information
Tell us if any listing information is incorrect or outdated.