Write apps/backend/docs/concepts-logging.md for lib/logger.ts: the structured logger, log levels, the standard fields, and — most importantly — the rule that message content, ciphertext and key material never appear in a log line.
Acceptance criteria:
- Documents the logger configuration, levels, and how level is set per environment
- States the no-content rule explicitly and gives the safe way to log about a message (ids and counts, never bodies)
- Documents the standard correlation fields available for tracing a request or socket event
- Notes the places still using bare
console.* and that new code should not add more
Write
apps/backend/docs/concepts-logging.mdforlib/logger.ts: the structured logger, log levels, the standard fields, and — most importantly — the rule that message content, ciphertext and key material never appear in a log line.Acceptance criteria:
console.*and that new code should not add more