kotlin-logging is a lightweight logging facade for Kotlin that works across multiple platforms.
The tool solves the problem of verbose logging code in Kotlin by providing a convenient API that eliminates boilerplate. It allows developers to call log methods without explicitly checking whether a log level is enabled, with message evaluation deferred behind the scenes when the log level is not active. Logger instances can be defined without manually specifying class names, as the framework automatically captures the enclosing class or file name. The library supports fluent logging syntax and exception logging in idiomatic Kotlin style.
The tool suits Kotlin projects on the JVM and multiplatform targets that want to reduce logging verbosity while maintaining performance. On the JVM, kotlin-logging acts as a facade over slf4j-api, so projects must provide both an slf4j implementation at runtime and explicitly depend on slf4j-api in version 5 and later. For developers wanting to log to stdout without additional configuration, adding a simple slf4j binding like slf4j-simple is sufficient. Multiplatform support is available experimentally for non-JVM targets.
The project maintains active continuous integration and receives regular updates. Development activity shows consistent engagement with the codebase and responsiveness to issues and pull requests.