BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
136 / 278 · Module 7 — Error Handling in Mule · filtered: code← prev⊞ allnext →

7.45Structured logging

Bad:

ERROR SOMETHING FAILED

Better:

{
  "level": "ERROR",
  "event": "salesforce_upsert_failed",
  "customerId": "C001",
  "correlationId": "7f82...",
  "errorType": "SALESFORCE:CONNECTIVITY",
  "retryAttempt": 2
}

Then Datadog/Splunk/ELK can answer:

How many Salesforce timeouts today?

Which customer IDs were affected?

Which failures exhausted retries?

This connects strongly to quality engineering.