<?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>topic Re: how to handle logging in groovy scripts in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26312#M11382</link>
    <description>&lt;P&gt;ok found out how to do it. Add the following to your script:&lt;/P&gt;&lt;P&gt;import org.slf4j.*;&lt;BR /&gt;Logger logger = LoggerFactory.getLogger("org.some.thing");&lt;BR /&gt;logger.debug("slf4j - logger.debug -- Hello world.");&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 08:47:21 GMT</pubDate>
    <dc:creator>klaasdeboer</dc:creator>
    <dc:date>2020-02-11T08:47:21Z</dc:date>
    <item>
      <title>how to handle logging in groovy scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26311#M11381</link>
      <description>&lt;P&gt;How can i access the logger from a groovy script?&lt;/P&gt;&lt;P&gt;Currently we use stdout (System.out.println("a log message")) in our groovy scripttasks. We want to move away from stdout logging and would like to use a the logger available in javascript scripttaks for example.&lt;/P&gt;&lt;P&gt;Or even better: can we define our own logfile and write to this?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 10:43:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26311#M11381</guid>
      <dc:creator>klaasdeboer</dc:creator>
      <dc:date>2019-12-19T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle logging in groovy scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26312#M11382</link>
      <description>&lt;P&gt;ok found out how to do it. Add the following to your script:&lt;/P&gt;&lt;P&gt;import org.slf4j.*;&lt;BR /&gt;Logger logger = LoggerFactory.getLogger("org.some.thing");&lt;BR /&gt;logger.debug("slf4j - logger.debug -- Hello world.");&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 08:47:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26312#M11382</guid>
      <dc:creator>klaasdeboer</dc:creator>
      <dc:date>2020-02-11T08:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle logging in groovy scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26313#M11383</link>
      <description>&lt;P&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/77041"&gt;@klaasdeboer&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;Thanks for posting this solution - will be helpful to other users.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 13:52:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-handle-logging-in-groovy-scripts/m-p/26313#M11383</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-02-11T13:52:23Z</dc:date>
    </item>
  </channel>
</rss>

