cancel
Showing results for 
Search instead for 
Did you mean: 

webscript logging

kayan
Champ in-the-making
Champ in-the-making
Hi All,

I have un-commented following lines code from log4j.properties to get the debug level log for js files on my console…

log4j.logger.org.alfresco.repo.jscript=DEBUG
log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=off


And I am getting the result as expected, but I am also getting the entire js file contents printed on the console

Can anybody please help to know, how I can stop printing js contents to the console?

Any help will be appriciate. Thanks.
2 REPLIES 2

stijndereede
Champ in-the-making
Champ in-the-making
That is an annoying feature of the jscript debugger. What version of Alfresco are you running? I seem to remember that in 2.9B I was no longer troubled by this.
As a work-around: maybe you could rewrite your log statements to a different level, let's say "info", and set the log-level accordingly? Or are you interested in the logging statements made by the native jscript engine?

kayan
Champ in-the-making
Champ in-the-making
Thanks for your information. I am using Alfresco 2.1.