backend-logging
Description
Structured logging patterns for backend applications with context, levels, and log aggregation compatibility.
Core Principles
- •Structured Logs: Use JSON format for searchability.
- •Context Correlation: Include request IDs for tracing.
- •Appropriate Levels: Use log levels consistently.
- •Sensitive Data: Never log credentials or PII.