on ‎2023 Mar 06 6:56 AM
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?
Request clarification before answering.
Hi Michael
You can write to the Message Processing Log (MPL). Check out the documentation here.
Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
michaeljohn82
Yes, you can use Groovy's println() method to print messages to the console log. This is the same as System.out.println in Java.
For example: println("This statement will be printed to the console log")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.