AnsweredAssumed Answered

Javascript logging in workflows

Question asked by mcurko on Oct 13, 2011
Latest reply on Nov 24, 2011 by mjboere
Hello,

I'm trying to achieve logging from javascript code in a workflow, but with no success. This is an excerpt from the workflow code I'm using:

<event type="process-start">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
   <script>
      if (logger.isLoggingEnabled())
      {
        logger.log("Please log something…");
      }
   </script>
</action>
</event>

and here is a part of my log4j.properties (you can see I tried everything):

log4j.logger.org.alfresco.repo.jscript=DEBUG
log4j.logger.org.alfresco.repo.workflow=DEBUG
log4j.logger.org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript=DEBUG
log4j.logger.org.alfresco.repo.web.srcipts=DEBUG
log4j.logger.org.alfresco.repo.web.srcipts.ScriptLogger=DEBUG
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG

I'm checking the alfresco.log file to see if anything gets in there, but it doesn't.
I really have no idea what else to try…

Outcomes