Hi,
console.log("test") command works fine in share-jar javascript file : i can see message in chrome console
But it doesn't work in platform-jar javascript file...
How can i use it ?
Can i retrieve message in chrome console or eclipse console ?
Thx
Solved! Go to Solution.
Add following log config in your log4j file and restart.
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug
Or [Enterprise version only] go to Admin console > Support Tools > Log setting and add the above log config. It will start printing the logs immediately without restart. Note, these changes doesn't persist. All settings will go back to original after a server restart.
Thank you!! @abhinavmishra14 , I am able to see javascript .get.js file logs in console.
I tried logger.debug("tests") and logger.log("tests") without succes...I can see anything in chrome console or eclipse console
It seems that , the script in on repository side in which you want to use console.log is repository server side script.So in that console.log will not work.
If the file name is ending with .get.js, in that case its a server side script and console.log will not work in that.In that case you need to use logger.log.This logs will be displayed in server console and not in browser console.
Hello,
I am looking to open or see alfresco server console where we could see .get.js file logs. Can you please let me know how can i see thoses logs?
Add following log config in your log4j file and restart.
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug
Or [Enterprise version only] go to Admin console > Support Tools > Log setting and add the above log config. It will start printing the logs immediately without restart. Note, these changes doesn't persist. All settings will go back to original after a server restart.
Thank you!! @abhinavmishra14 , I am able to see javascript .get.js file logs in console.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.