Skip to main content

Module api_logs

Module api_logs 

Source
Expand description

GET /api/logs — paginated query over the persisted JSONL log.

Thin HTTP adapter over zeroclaw_log::load_page. Pagination is cursor-based: responses include next_cursor: (timestamp, id) which callers pass back as until_ts / until_id to fetch older events.

Top-level query params: since_ts, until_ts, until_id, action, category, outcome, severity_min, trace_id, q, hide_internal, limit. Every other ?key=value is treated as a per-attribution exact-match (zeroclaw.<key> == value), driven by zeroclaw_log::is_attribution_field. Adding a new attribution field anywhere in the schema requires no changes here.

Structs§

LogsResponse

Functions§

handle_api_logs