Log levels
Log levels in increasing verbosity:ERROR, WARNING, INFO (default), DEBUG, TRACE.
| Level | What you see |
|---|---|
ERROR | Backend connection failures, unrecoverable errors |
WARNING | IPs quarantined, connection errors, requests dropped |
INFO | Server start/stop, IP released from quarantine |
DEBUG | Request dispatch (method, URL, IP), retry decisions, pool seeding |
TRACE | Every queue push/pop, every Redis command, every connection open/close |
Log formats
Text (default)
Human-readable, suitable for local development:JSON
Structured output for log aggregators (Fluentd, Datadog, GCP Cloud Logging):Writing to a file
Recommended settings by environment
| Environment | Level | Format |
|---|---|---|
| Local development | DEBUG | text |
| Docker (single host) | INFO | json |
| Kubernetes | INFO | json |
| Debugging production | DEBUG | json |