For a logging library for Ruby applications, the first results are twp/logging (This library provides a robust, production-grade logging framework for Ruby that supports hierarchical log levels, multiple output destinations, and structured contextual metadata), charmbracelet/log (This is a structured logging library for the Go programming language, making it incompatible with a Ruby-based application stack) and delgan/loguru (This is a Python logging library, not a Ruby one, and therefore cannot be used to provide observability or event tracking in a Ruby application). pamburus/hl is also worth a look. Compare the match explanations and check the project documentation against your requirements.
We curate open-source GitHub repositories matching “best ruby logging libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
This library provides a robust, production-grade logging framework for Ruby that supports hierarchical log levels, multiple output destinations, and structured contextual metadata.
This is a structured logging library designed to produce logs using key-value pairs, severity levels, and machine-readable formats. It provides a toolkit for creating logs that are consistent for both human review and machine parsing. The project is distinguished by its focus on terminal visualization, using a styling system to apply colors and prefixes to log entries for improved readability in consoles. It also includes a specialized adapter to convert standard library log calls into structured events by inferring severity levels from message prefixes. The library manages metadata through
This is a structured logging library for the Go programming language, making it incompatible with a Ruby-based application stack.
Loguru is a Python logging library and thread-safe framework designed for recording system events and diagnostic messages. It functions as a structured logging tool that can serialize messages into JSON strings with metadata for automated parsing and analysis. The library includes a specialized exception tracker that captures unhandled crashes across main and background threads, rendering detailed stack traces that include local variable values. It further distinguishes itself through a unified routing pipeline that can intercept messages from the standard library logging module and dispatch
This is a Python logging library, not a Ruby one, and therefore cannot be used to provide observability or event tracking in a Ruby application.
hl is a set of command-line interface tools for filtering, aggregating, streaming, and visualizing structured log data across multiple sources. It functions as a log filter, file aggregator, real-time streamer, and structured log viewer. The project specializes in transforming JSON and logfmt data into human-readable formats for visual analysis. It enables the merging of multiple log files and compressed archives into a single chronologically sorted stream, while supporting live tracking of multiple sources into a unified real-time view. Capabilities include field-based filtering via key-val
This is a command-line utility for viewing and aggregating existing log files rather than a Ruby library for instrumenting applications with logging capabilities.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| twp/logging | 532 | Ruby | MIT | |
| charmbracelet/log | 3.1K | Go | mit | |
| delgan/loguru |
| 24K |
| Python |
| MIT |
| pamburus/hl | 2.9K | Rust | mit |