# lmittmann/tint

🌈 slog.Handler that writes tinted (colorized) logs

Repository: https://github.com/lmittmann/tint
Canonical: https://ross.abutalabs.com/products/tint
Homepage: https://pkg.go.dev/github.com/lmittmann/tint
Language: Go
License: MIT
License Family: permissive
Topics: golang, logging, slog, ansi, color
Last push: 2026-07-12T18:03:51+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 80, longevity 90
- inputs: {"age_days": 1263, "days_push": 52, "days_rel": 52, "gap_med": 76.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1343, forks 65 (observed 2026-08-28T04:04:26.493952+00:00)

## What it is
tint is a zero-dependency Go slog.Handler that writes colorized (tinted) log output to the terminal, inspired by zerolog's ConsoleWriter and slog.TextHandler. It offers customizable formatting via Options, a drop-in replacement for slog.HandlerOptions, including attribute replacement and custom levels.

## Use cases
- colorize Go slog output in the terminal
- pretty-print structured logs during local development
- drop-in replacement for slog.TextHandler with colors
- customize log levels and attribute formatting in Go
- write errors in red with slog

## When to choose
- you use Go's log/slog and want readable, colorized console output
- you want a zero-dependency slog.Handler
- you need zerolog ConsoleWriter-style output with slog

## When to avoid
- you need machine-readable logs like JSON for production ingestion
- you're not using Go's slog package

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: go, cli, cross-platform
- tags: slog, slog-handler, ansi-colors, colorized-logs, zero-dependency

## Member repositories
- lmittmann/tint (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:26.493952+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:42:54.646128+00:00, confidence not recorded.
  - readme: https://github.com/lmittmann/tint (fetched 2026-08-28T04:04:26.493952+00:00, sha ab219bbb9f29)
  - homepage: https://pkg.go.dev/github.com/lmittmann/tint (fetched 2026-08-29T12:02:17.301906+00:00, sha 99961cb92fb2)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T12:02:17.311075+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T12:02:17.313610+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
