# natefinch/lumberjack

lumberjack is a log rolling package for Go

Repository: https://github.com/natefinch/lumberjack
Canonical: https://ross.abutalabs.com/products/lumberjack
Language: Go
License: MIT
License Family: permissive
Last push: 2024-08-05T20:55:26+00:00

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

## Adoption (not part of the score)
Stars 5462, forks 655 (observed 2026-08-28T04:09:19.534602+00:00)

## What it is
Lumberjack is a Go package for writing logs to rolling files, handling rotation by size, age, and backup count. It is a pluggable io.Writer component that works with any logging library, including the standard library's log package.

## Use cases
- rotate log files by size in a Go application
- limit disk usage by deleting old log backups
- compress rotated log files
- plug rolling file output into zap or standard log
- write logs to files with automatic rotation

## When to choose
- you need log file rotation in a Go program
- you want a simple io.Writer-based rolling logger
- you need size/age/backup retention policies for logs

## When to avoid
- you need a full logging framework with formatting and levels
- multiple processes write to the same log files
- you need centralized or network log shipping

## Facets
- artifact type: library
- maturity: stable
- function: logging, file-system, compression
- domain: developer-tools, backend
- platform: go, cross-platform
- tags: log-rotation, rolling-files, io-writer, devops

## Member repositories
- natefinch/lumberjack (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:19.534602+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-29T17:56:46.340465+00:00, confidence not recorded.
  - readme: https://github.com/natefinch/lumberjack (fetched 2026-08-28T04:09:19.534602+00:00, sha b4d9d0e58b78)
- Data as of 2026-08-30T08:39:29.467469+00:00.
