Emit structured JSON logs to stdout #27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the platform-contract intake (#25).
Promtail on
home-ctr-onyxauto-ships Docker stdout to Loki and extractslevel+eventas queryable labels when logs are JSON. The intake (5.1) commits to structured JSON at launch, not deferred.Scope
levelandeventso Promtail indexes them as labels. Additional fields (request path, status, duration, etc.) are searchable via| jsonin LogQL but don't need to be labels.--log-config(YAML) + stdliblogging. No new runtime dependency if stdlib is enough; if we pull in a third-party JSON formatter it should be a small, well-maintained one (python-json-loggeris the likely candidate).Out of scope
structlog. The indexing contract only needslevel+event; the fullstructlogpipeline is more than we need for a single-container app.Deliverables
levelandeventfor both app and access logs.levelandeventkeys).Tracks work that blocks first deploy per #25.