This post show Groovy scripting to read and log all header, properties in message log, and payload body as attachment, then can be viewed in Monitoring Message Processing Log, for troubleshooting and debug purpose.

Reuse previous iFlow, the completed iFlow is like below. Added 2 steps before and after message mapping step, name it log01 and log02 respectively.

Create script called logger.groovy:

At log01 and log02 steps, put value in Name and Script Function as well:

After test run, will able to see 2 attachments:

All header and properties is showing at “Log” tab:

Attachment are showing and 2nd and 3rd tabs:

Keep on exploring 🙂

Debug/Logging Headers, Properties, Payload Body using Groovy Scripts
Tagged on:             

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.