<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Groovy script how to write trace statements in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706880#M4768209</link>
    <description>&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 11:32:44 GMT</pubDate>
    <dc:creator>michaeljohn82</dc:creator>
    <dc:date>2023-03-06T11:32:44Z</dc:date>
    <item>
      <title>Groovy script how to write trace statements</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaq-p/12706876</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
  &lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 06:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaq-p/12706876</guid>
      <dc:creator>michaeljohn82</dc:creator>
      <dc:date>2023-03-06T06:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy script how to write trace statements</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706877#M4768206</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;michaeljohn82&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;
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. &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example:

println("This statement will be printed to the console log")&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 07:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706877#M4768206</guid>
      <dc:creator>Yogananda</dc:creator>
      <dc:date>2023-03-06T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy script how to write trace statements</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706878#M4768207</link>
      <description>&lt;P&gt;Hi Yogananda - Thanks. I believe this is referring to the IDE console log. I was referring to something I can see CPI logs. Like AbstractTrace object in PI/PO mapping where we can show some helpful text in the code in the message monitor. Is there any similar feature here?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 08:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706878#M4768207</guid>
      <dc:creator>michaeljohn82</dc:creator>
      <dc:date>2023-03-06T08:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy script how to write trace statements</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706879#M4768208</link>
      <description>&lt;P&gt;Hi Michael&lt;/P&gt;&lt;P&gt;You can write to the Message Processing Log (MPL). Check out the documentation &lt;A href="https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/e8e928373b66488b8d78fb5a314b8a9e.html" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Morten&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 09:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706879#M4768208</guid>
      <dc:creator>MortenWittrock</dc:creator>
      <dc:date>2023-03-06T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy script how to write trace statements</title>
      <link>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706880#M4768209</link>
      <description>&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/groovy-script-how-to-write-trace-statements/qaa-p/12706880#M4768209</guid>
      <dc:creator>michaeljohn82</dc:creator>
      <dc:date>2023-03-06T11:32:44Z</dc:date>
    </item>
  </channel>
</rss>

