BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
1 / 18 · Module 2 — Building a Real Mule Flow · filtered: cheatsheet⊞ allnext →

2.14Add logging

Another realistic flow:

Listener
   ↓
Logger
   ↓
Validation
   ↓
Transform
   ↓
Logger
   ↓
Salesforce
   ↓
Logger
   ↓
Response

Example Logger expression:

#[%dw 2.0
output application/json
---
{
    message: "Processing customer",
    customerId: payload.customerId,
    correlationId: correlationId
}]

Do not simply log:

payload

in production if it can contain:

PII
PHI
credentials
tokens
financial data

This is a strong QA/security talking point.