Problem with logger.debug in share js file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 01:18 AM
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.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 03:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 03:34 AM
I'm using Alfresco4.2.b(community edition) and firefox.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 04:00 AM
logger.debug() is a method on server-side javascript.
If you're trying to use logging in client side JS, you can use alfresco's logging:
Alfresco.logger.debug("message");
. Or simple old console.log()
will work, but not in internet explorer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 04:01 AM
logger.debug()
. I think you can only have <code>logger.log()/code>, at least on the /share side of things. /alfresco app has them all: log(), debug(), error().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 05:02 AM
logger.debug() is working fine in server side webscripts, but I'm trying to use logger.debug() on presentation side webscrips (i.e, in sample.get.js ). It throwing error.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 02:40 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2013 12:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2013 04:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2013 02:16 AM
I'm trying to use logger.debug("message"); in sample.get.js file i.e, on presentation webscript. Does logger.debug will work?
