# oshai/kotlin-logging

Lightweight Multiplatform logging framework for Kotlin. A convenient and performant logging facade.

Repository: https://github.com/oshai/kotlin-logging
Canonical: https://ross.abutalabs.com/products/kotlin-logging
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, slf4j, logging, jvm, android, multiplatform
Last push: 2026-05-27T06:26:37+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 86, longevity 100
- inputs: {"age_days": 3716, "days_push": 98, "days_rel": 98, "gap_med": 12, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3107, forks 130 (observed 2026-08-28T04:07:43.793248+00:00)

## What it is
A lightweight, pure-Kotlin multiplatform logging facade that provides convenient and performant logging APIs for Kotlin. It wraps slf4j on the JVM and offers lambda-based lazy message evaluation, automatic logger naming, and fluent logging.

## Use cases
- add logging to a Kotlin JVM application
- log messages lazily without checking log levels manually
- use a consistent logging API across Kotlin multiplatform projects
- log exceptions in idiomatic Kotlin style
- replace verbose slf4j boilerplate in Android apps

## When to choose
- you write Kotlin and want idiomatic, lambda-based logging
- you need a logging facade that works across Kotlin multiplatform targets
- you want lazy message evaluation for performance
- you already use slf4j and want a nicer API on top

## When to avoid
- you need a full logging implementation rather than a facade
- your project is not Kotlin/JVM-based
- you need structured logging backends beyond what slf4j provides

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend, mobile-development
- platform: jvm
- tags: kotlin-multiplatform, slf4j, logging-facade, android

## Member repositories
- oshai/kotlin-logging (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.793248+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:26:58.624420+00:00, confidence not recorded.
  - readme: https://github.com/oshai/kotlin-logging (fetched 2026-08-28T04:07:43.793248+00:00, sha 696a33a5eeb9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
