cancel
Showing results for 
Search instead for 
Did you mean: 

Logging not enabled for webscript - HELP NEEDED

ganmaku
Champ on-the-rise
Champ on-the-rise
Dear team,

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?
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
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