Skip to main content

Module log_capture

Module log_capture 

Source
Expand description

In-memory log capture layer for read-log-entries / last-error.

Plugs into the existing tracing stack as a Layer that records the last N events to a ring buffer. The MCP server reads from the buffer on demand.

Structs§

CaptureLayer
LogBuffer
LogEntry

Functions§

install
Install the capture layer on the global tracing subscriber. Idempotent — safe to call multiple times. Returns the shared buffer.