Agent Wranglers

Logs Recommended

Use log levels with fixed meanings

Use a small set of levels, each with one meaning, and run production at info level.

How to do it

Use error for failures that need a person, warn for handled problems, info for business events and debug for detail that stays off in production. Write the meanings down. Never log the same failure at several levels.

How to check

In one day of production logs, every error line matches an error the team tracks. No debug lines appear.

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers operations playbook: https://agentwranglers.se/playbook/operations/logs/log-levels.