]> git.hungrycats.org Git - bees/commit
reporter: add a log sink for reports (filename = -)
authorZygo Blaxell <bees@furryterror.org>
Wed, 17 Jun 2026 04:57:03 +0000 (00:57 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 5 Sep 2026 04:03:57 +0000 (00:03 -0400)
commit09eee6a7f3170d2aef5048fc75445504ecbd0c80
tree2e372527cbd2401162c68a55699c31ad9014893d
parentf47c2c397d64806407c4a4d65f7f32026c636f99
reporter: add a log sink for reports (filename = -)

Reports could only be written to files.  Folding the legacy progress log into
the reporter needs a report that emits to the log instead, so the periodic
counter/thread output keeps appearing where operators watch it.

A report whose filename is "-" is a log sink: write_report renders its tokens
as usual, then emits the result via BEESLOG at the report's level rather than
writing a file.  Add a per-report "level" key (syslog-style integer, default
LOG_INFO) and resolve "-" reports to no directory fd.  BEESLOG applies the
same category-level gate as every other log call, so a "-" report respects
log verbosity like anything else.

Assisted-by: Claude-Code:claude-opus-4-8
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
docs/config-file.md
src/bees-config-v1.cc
src/bees-reporter.cc
src/bees-reporter.h
src/bees.cc