Skip to content

Backend structured logging conventions #565

Description

@codebestia

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions