Rlg

•
6
•

Provides a near-lock-free structured logging engine for Rust applications, enhanced by an extensive ecosystem for log processing, export, and analysis.

Rlg offers a high-performance, near-lock-free structured logging solution for Rust, built around a 65k-slot ring buffer inspired by the LMAX Disruptor pattern, ensuring sub-microsecond ingestion. Beyond its efficient core logging engine with 14 output formats, rlg provides a comprehensive ecosystem of companion crates, including a `jq`-style CLI for log filtering and conversion, an OTLP/HTTP exporter for integration with observability platforms, Tower middleware for request logging, WebAssembly bindings for diverse environments, and PII redaction capabilities for compliance. It also features an MCP server to expose log streams to LLM agents and a reporting tool for log analytics, making it a versatile toolkit for robust observability.

主な機能

01Near-lock-free structured logging with sub-microsecond ingestion
02Extensive ecosystem: CLI, OTLP exporter, Tower middleware, WebAssembly bindings
03PII and secret redaction using Aho-Corasick algorithm with built-in patterns
044 GitHub stars
05High-performance 65k-slot ring buffer (LMAX Disruptor pattern)
06MCP server for exposing log streams as tools to LLM agents (Claude Desktop, Cursor)

ユースケース

01Integrating high-performance structured logging into any Rust application or library
02Exporting logs to OpenTelemetry-compatible observability platforms like Honeycomb, Datadog, or Jaeger
03Enabling AI agents to consume and analyze application logs via the Model Context Protocol