Logging Best Practices
- Decide first: What question should logs answer?
- Log inputs, outputs, and decisions per subsystem.
- Prefer simple, high-value signals over spammy high-rate channels.
- Use consistent names and units; document conversions near the log call.
- Rotate or prune logs to avoid filling storage.