cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with logger.debug in share js file

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

logger.debug is not working in share get.js, when I tried to use logger.debug("some message"); I got the following error in the browser
TypeError: Cannot find function debug.

Please help me to resolve this issue.

Thanks in advance,
Badam.
11 REPLIES 11

zladuric
Champ on-the-rise
Champ on-the-rise
Uh, it is in a webscript controller, so server-side. I am not 100% sure, but I think you can only use
logger.log()
there, not
logger.debug()
. That should work.

ddraper
World-Class Innovator
World-Class Innovator
Yes, that's correct (use logger.log) see the API here: http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Logging_API