cancel
Showing results for 
Search instead for 
Did you mean: 

logger.log('test') always can not work;

zzyyqq1
Champ in-the-making
Champ in-the-making
even i changed the log level in log4j.properties as the below:

# Set root logger level to error
log4j.rootLogger=info, Console, File
# Repository
log4j.logger.org.alfresco.repo.web.scripts=info
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=on
log4j.logger.org.alfresco.repo.jscript=info
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=info
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info


i was almost driven to mad, who can help me figure out this issue, thank you in advance.

BTW:
      i am using community 3.2 on windows XP.
      no error found when script running, just can not find log content in the alfresco.log and tomcat console.
Allen
2 REPLIES 2

jayjayecl
Confirmed Champ
Confirmed Champ
How do you run your script ?

Try

log4j.logger.org.alfresco.repo.jscript=debug

gyro_gearless
Champ in-the-making
Champ in-the-making
FWIW, i had to set


log4j.logger.org.alfresco.repo.jscript=debug
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug

to see the workflow scripts' output in alfresco.log  :mrgreen:

Cheers
Gyro