Use it when observing automation around Log Levels. Keep requested action, accepted operation, emitted telemetry, collected telemetry, effective target state and workload/service result as separate proof boundaries.
Log Levels
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.
1. Use levels consistently.
2. INFO for actions, WARNING for recoverable issues, ERROR for failures.
3. DEBUG only when needed.
4. Don't log secrets even at DEBUG.
5. Alert on ERROR.
event severity → level → handling
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
event/state transition → severity classification → structured event → collector mapping → retention/filtering → query/alert → run outcome correlation
Healthy evidence: severity semantics are consistent, terminal outcome is explicit, debug can be safely enabled temporarily, and collector mappings preserve levels without hiding required context.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: every failure is logged as info, warnings trigger pages without impact, debug permanently exposes sensitive payloads, or different tools map fatal/error inconsistently.
A log level is classification metadata, not a evidence of root cause, business impact, job success or target health.
Step 3 Common mistakes Narrow the fault
- Everything at DEBUG in production.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Error level ≠ job necessarily failed.
- Info level ≠ event operationally unimportant.
- Debug enabled ≠ diagnosis complete.
- Lower verbosity ≠ lower storage cost if event volume remains uncontrolled.
- Levels (DEBUG, INFO, WARNING, ERROR) — severity
- Default INFO in production — noise
- Debug toggle per run — troubleshooting
ReferenceWhat it is1 section · depth on demand
Core model
Define stable semantics for trace/debug/info/warn/error/fatal or equivalent levels, map levels to state transitions rather than developer preference, keep terminal outcome explicit, allow temporary diagnostic elevation with bounded duration, and ensure production defaults retain enough context to diagnose failures without logging secrets.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A log level is classification metadata, not a evidence of root cause, business impact, job success or target health.
In depth
Log levels classify messages by importance so operators can choose how much detail they see. Normal runs log at INFO; troubleshooting temporarily raises verbosity to DEBUG.
| Level | Use |
|---|---|
| DEBUG | Detailed internal state, payloads (without secrets) |
| INFO | Normal progress: started, target processed, finished |
| WARNING | Unexpected but handled: retry, skipped item |
| ERROR | A target or step failed |
| CRITICAL | The run cannot continue |
Make the level configurable (-v, LOG_LEVEL environment variable) and consistent across tools, so alerting can rely on ERROR meaning something actionable. Ansible verbosity (-v to -vvvv) shows progressively more connection and module detail.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Logging & Observability > Log Levels. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://opentelemetry.io/docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Log Levels observability proof-boundary map
Fast identity/scope, telemetry-path, effective-outcome and monitoring/closure boundaries for Log Levels.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Identity / scope | Immutable source plus run/job/attempt and exact target IDs are explicit | Floating source, shared labels or ambiguous target scope make events hard to attribute |
| Telemetry path | Structured logs, metrics and traces are exported, timestamped, retained and correlated | Console-only output, missing data or broken correlation silently creates blind spots |
| Effective outcome | Job status is paired with target read-back and workload/service acceptance | Green execution state substitutes for effective target or service verification |
| Monitoring / closure | Rates, latency, freshness and alerts use explicit windows/objectives and tested recovery | Untested alerts, stale dashboards or one successful sample are treated as healthy system proof |