cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I find log output from repo jscript?

damonrand
Champ in-the-making
Champ in-the-making
Hi,

I am running Alfresco 3.4. I am trying to view log output from this js.

Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\forms\pickerchildren.get.js

 
 if (logger.isLoggingEnabled())
   {
      logger.log("children type = " + url.templateArgs.type);
      …….
   }

Where should I expect to see this log output writing to?

I tried modifying alfresco log4j.properties.

# Web Framework
log4j.logger.org.springframework.extensions.webscripts=info
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=[b]on[/b]

# Repository
log4j.logger.org.alfresco.repo.web.scripts=warn
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=[b]on[/b]

I was expecting to see a Swing debugger popup on the server but nothing happened? I ticked "Allow service to interact with the desktop" under the Windows service control panel.

Damon.
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
To see the output of logger.log calls, try setting:
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=debug
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug

With that Rhino setting on "on" you should have seen the Swing debugger pop up when you started Tomcat. But that's not where you'll see the output of logger.log statements.

Jeff