BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
59 / 81 · Module 16 — Production Engineering and Observability · filtered: interview← prev⊞ allnext →

16.10Log levels

Typical mental model:

DEBUG
detailed development troubleshooting

INFO
normal important lifecycle events

WARN
unexpected but recoverable

ERROR
operation failed / attention required

Don't produce:

ERROR

for expected bad user input.

Otherwise monitoring becomes meaningless.

For example:

invalid customer request
→ WARN/INFO depending on policy

Salesforce unavailable
→ ERROR