Summary
Add optional file-based logging of detection matches in hostd, writing NDJSON to a rotated log file for offline analysis.
Context
stdout works for real-time piping, but users also need persistent match history when running hostd as a background service.
Implementation
- Add
--log-dir <path> CLI flag
- Write match messages to date-stamped NDJSON files (e.g.,
airhound-2026-03-15.ndjson)
- Rotate daily, optional size limit
- Same
DeviceMessage format as stdout — files are directly consumable by companion tools
- Optional:
--log-all to log all scanned devices (not just matches)
Related
Summary
Add optional file-based logging of detection matches in hostd, writing NDJSON to a rotated log file for offline analysis.
Context
stdout works for real-time piping, but users also need persistent match history when running hostd as a background service.
Implementation
--log-dir <path>CLI flagairhound-2026-03-15.ndjson)DeviceMessageformat as stdout — files are directly consumable by companion tools--log-allto log all scanned devices (not just matches)Related