cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Groovy script how to write trace statements

michaeljohn82
Participant
0 Likes
3,287

Dear All,

While writing java code we normally use System.out.println to display some helpful messages in the code and also help troubleshooting process. Is there any similar way in Groovy where we can know which code statement is causing the issue by writing some text to console log?

View Entire Topic
MortenWittrock
SAP Mentor
SAP Mentor

Hi Michael

You can write to the Message Processing Log (MPL). Check out the documentation here.

Regards,

Morten

michaeljohn82
Participant

Hi Morten,

Thank you. Yes, I saw this in the help but was not sure how to view the log statements. I kept the iFlow in Tracing mode and tried to view the log statements but couldn't find it. I will close this for now as the concept is clear and will try with different iFlows to see the effect.