Comparison

Log levels for bots: what belongs in info vs error

Keep info quiet and errors actionable.

Comparison1 min readUpdated

Use info for successful handler outcomes, warn for retries/rate limits, error for failed user-visible actions — debug only in staging.

Checklist

  • Default prod level info
  • Never log bodies at info
  • Metrics for volume; logs for stories
  • Centralize level config in env

Operator notes

Revisit this choice when your traffic, team size or compliance needs change. Keep a one-line decision log in the repo.

Frequently asked questions

Is this exhaustive?

No. It is a practical starting point; verify details in official docs before production.

Related comparisons and tools