Commit b30ea01
Add tracing + tracing-subscriber. Global --log-format=pretty|json and
--log-level flags (precedence --log-level > RUST_LOG > info). The
subscriber writes to stderr so the stdout data contract is never
contaminated: JSON reports, the version string, the octad table, and
the status/gc/validate report bodies stay on stdout verbatim. Only
genuine diagnostics (schema parsing, file-write progress, "checking
drift", "created manifest") become tracing events. JSON log schema
documented in docs/logging.adoc + docs/logging.schema.json. New
acceptance suite tests/logging_test.rs (6 tests): stdout purity,
JSON-line schema validity, level filtering, RUST_LOG precedence.
Closes #51.
Co-authored-by: hyperpolymath <hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent ff71517 commit b30ea01
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments