roidrage/lograge

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on September 19th, 2026
Created on March 10th, 2012
Open Issues & Pull Requests: 69 (+0)
GitHub issues: Enabled
Number of forks: 298
Total Stargazers: 3,572 (+0)
Total Subscribers: 35 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 35.0 hours
Mean response time: 76.4 days
90th percentile: 288.0 days
Tracked items: 6

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 820 days
Stale 30+ days: 3
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Lograge is a Rails logging library that replaces the framework's verbose default request logging with a single-line, key-value format output.

Rails' default logging produces multiple lines per request with verbose, difficult-to-parse output that becomes unreadable when multiple processes write to the same log file in production. Lograge solves this by capturing all relevant request information—method, path, status, duration, and custom data—into a single structured line. The approach removes the noise and clutter of Rails' standard logger while preserving essential details in a format inspired by Heroku's router logs.

Lograge suits production environments where log volume and readability matter. It works well for applications running multiple processes or servers that write to shared log files, and for teams using log aggregation or parsing tools that benefit from structured output. The tool is particularly valuable if you want to move away from Rails' logging defaults without switching to external log formatters or adding request tokens. The project supports a wide range of Rails and Ruby versions, including recent releases and older versions, with official support spanning multiple major versions of both frameworks.

The project maintains active compatibility testing across supported Rails and Ruby versions in continuous integration. Development includes best-effort testing against edge versions of Rails and Ruby to catch upcoming incompatibilities early, though these are not yet officially supported. The tool provides configuration flexibility through initializers, allowing customization of output format, addition of custom data via hooks, timestamp inclusion, filtering of specific log messages, and support for alternative output formats including JSON for use with log aggregation systems.