OSS TanbouSign in with GitHub

reduce logging boilerplate with lazy messages and Kotlin-style APIs

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
3,113
Primary language
Kotlin
License
Apache-2.0
Repository last updated
May 27, 2026
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]

Multiplatform support is described as experimental in the README

Although the project targets multiple platforms, its README labels multiplatform support as experimental. Release 8.0.4 primarily aligns the project with semantic versioning.

Sources: [1][2]

Official sources

  1. [1]kotlin-logging README(2026-10-06)
  2. [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. 1

    Get the source

    git clone --depth 1 https://github.com/oshai/kotlin-logging.git
  2. 2

    Enter the repository

    cd kotlin-logging
  3. 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
Check the official README

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

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
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?