lib-log-rich
Rich-powered logging runtime with contextual metadata, multi-sink fan-out, and ring-buffer dumps
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean abstraction over multi-backend logging with Rich styling. Install it if you need structured logging with journald/Windows Event Log/Graylog fan-out and colored console output; skip it if you only need basic Python logging or have no use for remote log sinks.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or newer.
- Low friction: pure Python wheel with six runtime dependencies (rich, pydantic, orjson, python-dotenv, rich-click, lib-cli-exit-tools).
- Active maintenance; last release 14 days ago.
License · maintenance · safety
MIT (permissive) — MIT license (permissive); you may use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
last release 2026-07-31 (14 days) · last repo commit 2026-07-31 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 127,450 downloads/mo, #11,742 on PyPI
Alternatives
Verify before relying
import logging
import lib_log_rich
from lib_log_rich.runtime import attach_std_logging
lib_log_rich.init(lib_log_rich.RuntimeConfig(service="my-app", environment="dev"))
attach_std_logging()
logging.info("Ready to go!")
lib_log_rich.shutdown()- Whether OpenTelemetry integration is available or remains unimplemented as of version 6.3.7.
- Exact behavior and performance impact of queue-backed console adapters under high-throughput workloads.
- Whether Graylog support includes gRPC transport or is limited to GELF HTTP.
What it is and what it does
lib_log_rich is a logging runtime that wraps and extends Python's standard logging with Rich terminal styling, structured metadata binding, and multi-sink fan-out. It captures colored console output tuned to terminal capabilities, while simultaneously routing events to journald (Linux), Windows Event Log, or Graylog backends—each with independent log-level gates. The package maintains a ring buffer of recent log events that can be dumped on demand in JSON, HTML, or plain text, and provides queue-backed adapters for thread-safe and async-safe console output suitable for GUIs or streaming contexts.
You initialize it once with a RuntimeConfig (service name, environment, payload limits), then either use its LoggerProxy API directly or attach a stdlib handler to bridge existing logging calls from third-party libraries and legacy code. Context metadata (user, hostname, process ID) is captured automatically. The package validates all configuration through Pydantic, offers optional .env loading, and exposes diagnostic hooks for observability without coupling to a monitoring stack.
Use it for
- Centralize logs from a multi-threaded or async application to journald or Graylog while displaying colored output on the console.
- Export recent log history as JSON or HTML for debugging without restarting the application.
- Bridge existing stdlib logging calls in third-party libraries into a structured, multi-backend logging pipeline.
- Set independent log levels for console, journald, and Graylog so verbose debugging stays local while only errors reach remote sinks.
- Capture and inspect per-event metadata and context bindings for structured observability without manual instrumentation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean abstraction over multi-backend logging with Rich styling. Install it if you need structured logging with journald/Windows Event Log/Graylog fan-out and colored console output; skip it if you only need basic Python logging or have no use for remote log sinks.
Install
lib-log-rich on PyPI
Before you install
Low friction: pure Python wheel with six runtime dependencies (rich, pydantic, orjson, python-dotenv, rich-click, lib-cli-exit-tools). Active maintenance; last release 14 days ago.
Requires Python 3.10 or newer.
License in practice
MIT license (permissive); you may use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
Quickstart
import logging
import lib_log_rich
from lib_log_rich.runtime import attach_std_logging
lib_log_rich.init(lib_log_rich.RuntimeConfig(service="my-app", environment="dev"))
attach_std_logging()
logging.info("Ready to go!")
lib_log_rich.shutdown()
Verify before relying
- Whether OpenTelemetry integration is available or remains unimplemented as of version 6.3.7.
- Exact behavior and performance impact of queue-backed console adapters under high-throughput workloads.
- Whether Graylog support includes gRPC transport or is limited to GELF HTTP.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packageslib-cli-exit-toolsorjsonpydanticpython-dotenvrich-clickrich |
| Maintenance | Actively maintained 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 127,450 / month, #11,742 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: ConsoleLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: lib_log_rich-6.3.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “rich colored logging”
- lib-log-richProvides Rich-styled colored console logging with structured…
- ascii-colorsUnified terminal UI library providing colored output, structured…
- pdbrpdbr enhances Python's built-in debugger with colored output and new…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also mo-logs · jsonformatter · enrich · colored · Twiggy · coloredlogs · pdbr · ascii-colors · log-symbols · systemd-python