SDK 3 : how to see log ?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
anakin59490
Established Member II

SDK 3 : how to see log ?

Jump to solution

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

1 Solution

Accepted Solutions
anakin59490
Established Member II

Re: SDK 3 : how to see log ?

Jump to solution

Found it :  

3 Replies
anakin59490
Established Member II

Re: SDK 3 : how to see log ?

Jump to solution

I tried logger.debug("tests") and logger.log("tests")  without succes...I can see anything in chrome console or eclipse console

krutik_jayswal
Senior Member II

Re: SDK 3 : how to see log ?

Jump to solution

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.

anakin59490
Established Member II

Re: SDK 3 : how to see log ?

Jump to solution

Found it :