做完設定後,請記得重開tomcat server
log4j 路徑:
/usr/local/TOMCAT/webapps/alfresco/WEB-INF/classes/log4j.properties
Javascript webscript logging
在js controller加入以下語法logger.log("Hello Debug");
修正log4j properties
log4j.logger.org.alfresco.repo.jscript=debug log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug
Java backed webscript logging
在java controller加入以下語法private static Log LOGGER = LogFactory.getLog(UploadObject.class);
LOGGER.debug("Hello Debug");
修正log4j properties
log4j.logger.tw.org.iii.cosa.javabacked.webscript=debug log4j.logger.tw.org.iii.cosa.javabacked.utility=debug
log4j.logger.org.example=debug
沒有留言:
張貼留言
留個話吧:)