Logging not enabled for webscript - HELP NEEDED
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 04:40 AM
Dear team,
I had added logger to the "categories-min.js" file present in "share/components/documentlibrary/"folder and code snippet is as below:
Before doing so, I have added the following thing to the log4j.properties file present in Share application.
But however, the logger message has not been logged in anywhere in the "tomcat/log" folder.
Please let me know, what other modification do I need to make to display the log message?
I had added logger to the "categories-min.js" file present in "share/components/documentlibrary/"folder and code snippet is as below:
Alfresco.logger.debug("Category list");
Before doing so, I have added the following thing to the log4j.properties file present in Share application.
log4j.logger.org.alfresco.repo.jscript=debug
But however, the logger message has not been logged in anywhere in the "tomcat/log" folder.
Please let me know, what other modification do I need to make to display the log message?
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 07:46 PM
Hi,
Categories-min.js is a client (ie browser) javascript file so is not affected by the log4j configuration that resides in the repository.
Try adding "&log=on" to your URL, the additional query parameter should turn the logging on for that request. Alternatively, take a look in alfresco.js (alfresco-min.js once deployed) to see how the client side logging works.
Cheers,
Roy
Categories-min.js is a client (ie browser) javascript file so is not affected by the log4j configuration that resides in the repository.
Try adding "&log=on" to your URL, the additional query parameter should turn the logging on for that request. Alternatively, take a look in alfresco.js (alfresco-min.js once deployed) to see how the client side logging works.
Cheers,
Roy
