Hi,
I was created an "helloWorld" advance workflow with Alfresco SDK 3.0 from Jeff Potts Blog Creating Custom Advanced Workflows in Alfresco | ECMArchitect | Alfresco Developer Tutorials .
On previous version with Alfresco SDK 2.0 the logger.log is run normally. But nothing appears in alfresco.log when using SDK 3.0. The deployment method used is AMP installation (on Alfresco CE 5.2.e).
This advance workflow works normal only when running on embedded Alfresco server.
Has anyone success running "helloWorld" advance workflow on Alfresco SDK 3.0?
Thank you,
[bayu]
Solved! Go to Solution.
OK found it at /opt/alfresco-community/tomcat/shared/classes/alfresco/extension/ -- by changing custom-log4j.properties.sample name.
Thanks,
"logger.log" will never print anything with the default Alfresco logging configuration, because this causes DEBUG statements to be logged which is below the default threshold for the ScriptLogger class (default setting: log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn). You need to set the logger to debug via custom-log4j.properties file...
If you already set dev-log4j.properties you should not need custom-log4j.properties - it is typically located in the same path. The custom-log4j.properties is meant for generic, custom overrides while the dev-log4j.properties is meant for dev-environment stuff. Never mind though that Alfresco does not differentiate between dev environments and any other environments, and it just looks at those configuration files in the precedence order of logj4.properties -> *-log4j.properties -> dev-log4j.properties
I don't use SDK 3, so I would not know if that includes something that messes with the logging configuration...
OK found it at /opt/alfresco-community/tomcat/shared/classes/alfresco/extension/ -- by changing custom-log4j.properties.sample name.
Thanks,
Okay.. Noted. Thanks so much!
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.