Skip to main content

Module debug_log

Module debug_log 

Source
Expand description

In-TUI debug log overlay.

A tracing Layer captures every event into a bounded, process-global ring buffer. The DebugLogModal overlay renders a snapshot of that buffer on top of the application: a live console that can be toggled at any time without interfering with normal usage.

Structs§

DebugLogModal
DebugLogModalState
LogEntry
A single captured log record, cheap to clone for rendering snapshots.

Enums§

LogLevel
Severity of a log record. Ordered from least to most severe so that a minimum-level filter is a simple >= comparison.
Message

Functions§

clear
Empties the ring buffer.
init
Registers the capturing Layer as the global tracing subscriber. Call once at startup.
update