<?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 logger.debug in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24374#M10604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use logger.log or logger.debug in server side javascript&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;logger.log("Hello");&lt;/P&gt;&lt;P&gt;Will "Hello" get printed in console or some log file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2017 17:04:40 GMT</pubDate>
    <dc:creator>sakshik</dc:creator>
    <dc:date>2017-05-26T17:04:40Z</dc:date>
    <item>
      <title>logger.debug</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24374#M10604</link>
      <description>If I use logger.log or logger.debug in server side javascriptlikelogger.log("Hello");Will "Hello" get printed in console or some log file?</description>
      <pubDate>Fri, 26 May 2017 17:04:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24374#M10604</guid>
      <dc:creator>sakshik</dc:creator>
      <dc:date>2017-05-26T17:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: logger.debug</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24375#M10605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the Log4J configuration. By default logger.log will not print to the console / alfresco.log / share.log unless you change the log level threshold via the custom-log4j.properties (Repository-tier only) or by modifying the default log4j.properties (unfortunately the only way for Share-tier). The setting you need to add for logger.log to output anything is&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=debug&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;since logger.log translates to "debug" level of logging&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 13:32:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24375#M10605</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-05-28T13:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: logger.debug</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24376#M10606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As additional comment to Axel's one, you can use logger.warn() to print your logs in catalina.out and alfresco.log with default Alfresco configuration. You can check&amp;nbsp;it easily with&amp;nbsp;Javascript Console.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 15:30:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/logger-debug/m-p/24376#M10606</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-05-28T15:30:53Z</dc:date>
    </item>
  </channel>
</rss>

