# roidrage/lograge

An attempt to tame Rails' default policy to log everything.

Repository: https://github.com/roidrage/lograge
Canonical: https://ross.abutalabs.com/products/lograge
Homepage: http://www.paperplanes.de/2012/3/14/on-notifications-logsubscribers-and-bringing-sanity-to-rails-logging.html
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-07-08T15:18:58+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 35, longevity 100
- inputs: {"age_days": 5289, "days_push": 56, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3572, forks 298 (observed 2026-08-28T04:08:10.723551+00:00)

## What it is
Lograge is a Ruby gem that replaces Rails' default multi-line request logging with a single, parsable key-value line per request. It is designed for production Rails applications where noisy, unparsable logs make debugging and log aggregation difficult.

## Use cases
- reduce noisy Rails request logs to one line per request
- make Rails logs parsable by log aggregation tools like Splunk or ELK
- add custom key-value fields to Rails request logs
- clean up production logging across multiple app servers
- log request duration, controller, status, and database time in structured format

## When to choose
- you run Rails in production and need clean, machine-parsable logs
- you aggregate logs from multiple processes and Rails' default output is unreadable
- you want structured key-value logging without switching logging frameworks

## When to avoid
- you are in early development and benefit from Rails' verbose default output
- you don't use Rails or a compatible framework
- you need timestamps included by default (you must configure a log formatter)

## Facets
- artifact type: library
- maturity: active
- function: logging, middleware
- domain: web-development, backend, monitoring, developer-tools
- platform: ruby, cross-platform
- tags: rails, structured-logging, log-formatting, key-value-logs, production-logging, web-server

## Member repositories
- roidrage/lograge (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.723551+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-29T18:34:05.736042+00:00, confidence not recorded.
  - readme: https://github.com/roidrage/lograge (fetched 2026-08-28T04:08:10.723551+00:00, sha 32e57ef82d0c)
  - homepage: http://www.paperplanes.de/2012/3/14/on-notifications-logsubscribers-and-bringing-sanity-to-rails-logging.html (fetched 2026-08-29T09:27:42.854793+00:00, sha 02fa90a4725d)
  - site_page: https://www.paperplanes.de/about (fetched 2026-08-29T09:27:42.864699+00:00, sha f08351c440a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
