Pcornel
Automation · Logging & Observability

Log Levels

Cheat sheet · https://pcornel.dk/topic.php?topic=5961

Back to the Topic

Answer

Log Levels classify automation events by operational significance so routine progress, diagnostic detail, recoverable anomalies and terminal failures can be filtered without hiding evidence required to understand run outcome.

Remember

  • Error level ≠ job necessarily failed.
  • Info level ≠ event operationally unimportant.
  • Debug enabled ≠ diagnosis complete.
  • Lower verbosity ≠ lower storage cost if event volume remains uncontrolled.

First checks

  • Levels (DEBUG, INFO, WARNING, ERROR) — severity
  • Default INFO in production — noise
  • Debug toggle per run — troubleshooting

Verify in this order

event severity → level → handling

Where it usually breaks

A log level is classification metadata, not a proof of root cause, business impact, job success or target health.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path.

Log Levels observability proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Identity / scopeImmutable source plus run/job/attempt and exact target IDs are explicitFloating source, shared labels or ambiguous target scope make events hard to attribute
Telemetry pathStructured logs, metrics and traces are exported, timestamped, retained and correlatedConsole-only output, missing data or broken correlation silently creates blind spots
Effective outcomeJob status is paired with target read-back and workload/service acceptanceGreen execution state substitutes for effective target or service verification
Monitoring / closureRates, latency, freshness and alerts use explicit windows/objectives and tested recoveryUntested alerts, stale dashboards or one successful sample are treated as healthy system proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5961

Confirmation

Confirm action

Continue?