Expand description
The day files: activity-YYYY-MM-DD.jsonl in the audit folder, appended by a writer thread (the recording is
queued, so the transcript’s hot path does no I/O here), and dropped when older than KEEP_DAYS.
Structs§
- DayFile
- A day’s file and the day it holds (
YYYY-MM-DD, UTC).
Functions§
- day_
files - The day files in
dir, newest day first. A file that is not named for a day is not listed. - install
- Starts the writer for the rest of this process: rows go to
dir, stamped withchannel. The first call wins. - install_
for_ this_ srv - Starts recording where the jekt audit goes: the shared audit folder, or this srv’s own while it does not use it.
- record
- Queues
rowfor its day file. Nothing happens beforeinstall.