Documentation
¶
Overview ¶
Package logger configures structured logging for the agent using log/slog.
Design decisions:
- JSON output by default for log aggregation (journald, Loki, Datadog)
- Text output when log.format=text (local development)
- Level controlled by log.level (debug, info, warn, error)
- Structured fields: workload, phase, digest, duration included consistently
Index ¶
Constants ¶
View Source
const ( PhasePoll = "poll" PhaseDrift = "drift_check" PhasePull = "image_pull" PhaseStrategy = "deployment_strategy" PhaseRestart = "restart" PhaseHealthCheck = "health_check" PhaseCommit = "commit" PhaseRollback = "rollback" PhaseNoop = "noop" )
Phase constants for structured log fields. Using constants prevents typos and enables log-based alerting rules.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.