Skip to main content

Module tail

Module tail 

Source
Expand description

Live event printer for kranz run: a read-only tail of events.jsonl (never the lock — the engine is the single writer, §4.3).

tail_events polls EventLog::read_events_after every POLL_INTERVAL from the pre-run head seq and prints one human line per event to stderr. EventRenderer does the event → line mapping and is separate so tests can assert on exact lines.

Structs§

EventRenderer
Renders one Event as one role-tagged, optionally colored, single line.

Constants§

POLL_INTERVAL
Tail poll interval.

Functions§

tail_events
Tail events.jsonl from from_seq, printing each new event as one line to stderr, until stop is set (a final catch-up read runs after that).