Skip to content

Pair with Relay Cards and Log Howl - #4

Merged
autoantohaki merged 1 commit into
feat/viewerfrom
feat/pairing
Oct 22, 2026
Merged

autoantohaki merged 1 commit into
feat/viewerfrom
feat/pairing

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Before: Relay Logs could show a log on its own, but there was no way to hand its entries to Relay Cards, and Log Howl alerts appeared as unrecognized JSON.

After: relay-logs -f --format cards api.log | relay-cards turns a followed log into cards. Errors and fatal entries become error cards that collect the stack frames below them, warnings become warning cards, and JSON records become JSON cards, with the time and file name in the card's leading bracket. --format json writes one normalized object per entry (time, level, source, message) whatever the log's original format.

Log Howl alerts (dispersal-wolves/log-howl-event/v1) are now read at their severity, shown as rule: matched line, and attributed to the watched file. log-howl watch >> alerts.jsonl followed by relay-logs -f alerts.jsonl gives the alerts the interactive viewer.

How: formatCards writes the line shapes Relay Cards' parsers already recognize ([tag] ERROR: …, [tag] WARN: …, raw JSON, untouched indented continuation lines), so neither project depends on the other. I checked the output by piping a sample log with a stack trace through Relay Cards' current main: it produced a text, JSON, warning, and error card, with both frames attached to the error. A log-howl scan piped into relay-logs --format cards produced the expected warning and info lines.

This branch is stacked on #3; please merge #1, #2, and #3 first.

@autoantohaki
autoantohaki merged commit 7c3bbce into feat/viewer Oct 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant