# go-logr/logr

A simple logging interface for Go

Repository: https://github.com/go-logr/logr
Canonical: https://ross.abutalabs.com/products/logr
Language: Go
License: Apache-2.0
License Family: permissive
Topics: logging, logger
Last push: 2026-08-17T17:58:16+00:00

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

## Adoption (not part of the score)
Stars 1401, forks 87 (observed 2026-08-28T04:04:37.314742+00:00)

## What it is
logr is a minimal logging interface for Go that decouples applications and libraries from specific logging implementations. Libraries emit logs via a small Logger API while logging frameworks implement the LogSink interface to provide actual output.

## Use cases
- decouple Go libraries from specific logging frameworks
- swap logging implementations without changing library code
- emit structured logs from Go applications
- pass a logger into libraries with minimal dependency fan-out
- implement a custom logging backend for Go apps

## When to choose
- you write Go libraries that need logging without hard dependencies
- you want applications to control the logging implementation in main()
- you need a lightweight, structured logging API

## When to avoid
- you need a full logging implementation with output handling out of the box
- you prefer the standard library log/slog directly
- your project is not written in Go

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: go, cross-platform
- tags: logging-api, decoupled-logging, log-sink, go-libraries

## Member repositories
- go-logr/logr (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.314742+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-30T04:39:02.552751+00:00, confidence not recorded.
  - readme: https://github.com/go-logr/logr (fetched 2026-08-28T04:04:37.314742+00:00, sha 69789b42df2e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
