platxa-logging
Installation
SKILL.md
Platxa Logging
Guide for structured logging and correlation ID patterns across Platxa services.
Overview
| Language | Logger | Correlation | Output Format |
|---|---|---|---|
| Python | logging module | ContextVar | JSON (audit) |
| TypeScript | Console | Session ID | Text/JSON |
| Go | log/slog | context.Context | JSON |
Core Principles
- Structured Over Unstructured: JSON format for machine parsing and log aggregation
- Correlation Required: Every request gets a unique ID, propagated across all services
- Context Propagation: Thread/goroutine-safe context passing
- Consistent Field Keys: Standardized keys across all languages
- Log Levels by Impact: ERROR=failed, WARN=degraded, INFO=normal, DEBUG=diagnostic