# sirupsen/logrus

Structured, pluggable logging for Go.

Repository: https://github.com/sirupsen/logrus
Canonical: https://ross.abutalabs.com/products/logrus
Language: Go
License: MIT
License Family: permissive
Topics: logging, logrus, go
Last push: 2026-08-25T18:07:36+00:00

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

## Adoption (not part of the score)
Stars 25750, forks 2287 (observed 2026-08-28T04:11:38.624338+00:00)

## What it is
Logrus is a structured, pluggable logging library for Go, fully API-compatible with the standard library logger. It supports JSON, logfmt, and colorized text formatters plus hooks, and is now in maintenance mode with only security and bug fixes.

## Use cases
- add structured logging to a Go application
- emit JSON logs for Logstash or Splunk
- drop-in replacement for the Go standard library logger
- attach hooks to send logs to external services
- color-coded console logs during development

## When to choose
- you need a battle-tested, widely adopted structured logger for Go
- you want stdlib log API compatibility for easy migration
- you need pluggable formatters and hooks

## When to avoid
- you are starting a new Go project and can use log/slog, zerolog, or zap instead
- you need actively developed new features
- you need the highest-performance logging available

## Facets
- artifact type: library
- maturity: maintenance
- function: logging, serialization
- domain: developer-tools, backend, apis
- platform: go, cross-platform
- tags: structured-logging, json-logging, logfmt, hooks, logstash

## Member repositories
- sirupsen/logrus (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:38.624338+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-29T16:55:59.473832+00:00, confidence not recorded.
  - readme: https://github.com/sirupsen/logrus (fetched 2026-08-28T04:11:38.624338+00:00, sha 93e3c4559cca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
