<?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: Share Webscript Logging in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287904#M241034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you just want this for debugging your script, then use logger.error("my message"); this will write to the logs without changing the log level.When you have debugged, remove the logger.error statements&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I find with changing the log level is that all webscripts then go to debug and that generates a lot of log entries (especially the SOLR scripts) and that makes your own personal ones hard to see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do want to change the log levels I always edit &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.web.scripts=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.jscript=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/share/WEB-INF/classes/log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#log4j.logger.org.alfresco.repo.jscript=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restart Alfresco of course and then you should see your debug messages along with all the other ones.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 08:10:25 GMT</pubDate>
    <dc:creator>rjohnson</dc:creator>
    <dc:date>2015-06-30T08:10:25Z</dc:date>
    <item>
      <title>Share Webscript Logging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287901#M241031</link>
      <description>I am creating a dashlet and I'd like to do some logging in the foo.get.js file.&amp;nbsp; I have a "logger.log("Foo");" statement that I'd like to see when the dashlet is executed, but I'm not seeing it in the logs.I have changed the client-debug value in share-custom-config.xml to true, but I'm still not se</description>
      <pubDate>Fri, 26 Jun 2015 21:52:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287901#M241031</guid>
      <dc:creator>jgunter505</dc:creator>
      <dc:date>2015-06-26T21:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Share Webscript Logging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287902#M241032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enable script debug logging in the log4j.properties files of each app module (i.e. alfresco and share).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 07:37:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287902#M241032</guid>
      <dc:creator>darkredd</dc:creator>
      <dc:date>2015-06-29T07:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Share Webscript Logging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287903#M241033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the response, but unfortunately that didn't work for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following in my log4j.properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have placed this properties file in conifg/alfresco/module/{module_id}, but I'm still not seeing any logging for my dashlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps I didn't use the right property or placed the file in the wrong spot, but still looking for the answer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 20:15:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287903#M241033</guid>
      <dc:creator>jgunter505</dc:creator>
      <dc:date>2015-06-29T20:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Share Webscript Logging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287904#M241034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you just want this for debugging your script, then use logger.error("my message"); this will write to the logs without changing the log level.When you have debugged, remove the logger.error statements&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I find with changing the log level is that all webscripts then go to debug and that generates a lot of log entries (especially the SOLR scripts) and that makes your own personal ones hard to see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do want to change the log levels I always edit &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.web.scripts=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.jscript=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/share/WEB-INF/classes/log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#log4j.logger.org.alfresco.repo.jscript=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restart Alfresco of course and then you should see your debug messages along with all the other ones.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 08:10:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-webscript-logging/m-p/287904#M241034</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2015-06-30T08:10:25Z</dc:date>
    </item>
  </channel>
</rss>

