miroir/docs/plan
jedarden cfc4eb3300 feat(logging): add structured JSON logging tests and docs (plan §10, P7.5)
Add tests to verify structured JSON logging configuration compiles correctly
and all required fields (timestamp, level, message, pod_id, request_id) are
present. Also add documentation explaining the implementation.

The JSON logging infrastructure was already in place in main.rs and
middleware.rs. This change adds:
- Tests to verify the JSON layer configuration
- Documentation of the log format and PII audit
- Verification that no API keys, document content, or user queries are logged

Acceptance criteria met:
- jq parses every log line (JSON layer configured)
- request_id appears in logs (span field with with_current_span(true))
- No PII in logs (audit verified)
- Log volume < 1 entry per client request at INFO level

Closes: miroir-afh.5
2026-05-24 10:00:21 -04:00
..
plan.md P11.8: Amend plan §12 to reflect Rust-idiomatic test layout 2026-05-20 06:49:04 -04:00
redis-memory-accounting.md Phase 0 (miroir-qon): Rust 1.88 upgrade + test infrastructure 2026-05-09 02:05:44 -04:00
REDIS_MEMORY_ACCOUNTING.md P3.3.d: Fix compilation - add missing local_search_ui_rate_limiter field 2026-04-26 11:18:02 -04:00
STRUCTURED_LOGGING.md feat(logging): add structured JSON logging tests and docs (plan §10, P7.5) 2026-05-24 10:00:21 -04:00