cancel
Showing results for 
Search instead for 
Did you mean: 

SDK 3 : how to see log ?

anakin59490
Star Contributor
Star Contributor

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

3 ACCEPTED ANSWERS

anakin59490
Star Contributor
Star Contributor

abhinavmishra14
World-Class Innovator
World-Class Innovator

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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

umme
Champ in-the-making
Champ in-the-making

Thank you!! @abhinavmishra14 , I am able to see javascript .get.js file logs in console.

View answer in original post

6 REPLIES 6