Observability
Log Levels Guide
Choose debug, info, warn and error levels so production logs stay useful during incidents. This Formalint reference is designed for developers, DBAs, platform engineers and support teams who need an ordered troubleshooting path.
The page keeps the work practical: collect evidence, avoid leaking secrets, make the smallest safe change and leave a note another engineer can repeat.
When to use it
- A deployment, policy, incident or integration behaves differently than expected.
- You need a repeatable command or checklist before changing production behavior.
- You want to keep the debugging note understandable for another engineer.
Practical workflow
| Step | What to verify |
|---|---|
| Define the signal | Decide whether the symptom should be visible in logs, metrics, traces, health checks or alerts. |
| Keep fields searchable | Use stable event names, correlation IDs, service names and safe identifiers. |
| Tune for action | Alerts should point to a user-visible problem, runbook or clear ownership path. |
Command or evidence sample
debug: internal troubleshooting
info: normal business event
warn: recoverable risk
error: failed user-visible operationReview checklist
- Write down the affected host, endpoint, job, service or browser context.
- Redact tokens, session cookies, passwords and customer identifiers.
- Capture timestamps, headers, logs or command output before changing settings.
- Prefer staged rollout, report-only mode, preview checks or single-URL cache purges where possible.
- Link the final note to a related Formalint page so the next step is obvious.
Common mistake
The common mistake is logging more text without making the event searchable, safe and tied to ownership.
Formalint's rule for these areas is simple: make the hidden system boundary visible before you tune it.
Related Formalint references
Continue with Api Correlation Id Logging Guide, Linux Journalctl Guide, Nginx Access Log Analysis Guide.
Frequently asked questions
Is this page enough for production approval?
No. Use it as a diagnostic and review aid, then follow your team's release, security and compliance process.
Can I paste real secrets or logs here?
No. Keep secrets and customer data out of browser tools. Use redacted examples and preserve sensitive evidence only in approved internal systems.