Skip to main content

Module log_render

Module log_render 

Source
Expand description

Standalone log record formatter — renders log records as Rich tables. Log record rendering — equivalent to Rich’s _log_render.py.

Provides the LogRender class for formatting log records into Rich tables with columns for timestamp, level, message, and file path.

Unlike RichHandler (which is a handler for the log crate), LogRender is a standalone formatter that can be used with any logging framework to produce styled terminal output.

Structs§

LogRecord
A single formatted log record, ready for rendering.
LogRender
A standalone formatter for rendering log records as Rich-styled tables.
LogTable
A collection of LogRecords rendered as a Rich table.