Logs: fields, filters, live and export #244

Merged
jcoffey-dev merged 1 commits from feat/229-logs into main 2026-11-18 20:06:37 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev dc5b745051 Logs: fields, filters, live and export
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 58s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 1m43s
The Logs page was the generic list: one long line per entry and a text
filter. It's now a page of its own:

- each entry opens to show its fields (key = value, split the way the
  Log tracer writes them, nested events and lists kept whole), with
  "Only <component>" and Explain this;
- levels carry the schema's colors;
- filters for level and above, component, text and a from/to time;
- Follow live asks for the newest page every 5 seconds while the tab is
  visible, with Pause; it keeps up to 1,000 entries and starts over when
  the log files rotate;
- Save as file writes up to 5,000 filtered entries as JSON lines (fields
  split out) or plain text.

A server with no Log tracer still gets the note from #217. The level,
component and time filters need inbuxa-server #455; text and everything
else work with older servers.

Test: unit tests for the field parser (quotes, lists, nested events, an
unescaped quote), the filter, live merging and export.
2026-11-18 12:53:19 -07:00