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 how to enable logger.debug mode in share side.

Thanks in advance,
Badam.
1 REPLY 1

wharper
Champ in-the-making
Champ in-the-making
(This is a repost of amin.zamani's comment)

You can not use logger.debug in share (only in repository js webscripts). I have searched in all the source code of share for "logger.debug" but it is not findable. So this is the real way how to do it:

if (logger.isLoggingEnabled()) {
logger.log("LOG ME");
}

Enjoy it … -Smiley Wink