View logs recorded by workflow scripts | Community
Skip to main content
January 31, 2017
Solved

View logs recorded by workflow scripts

  • January 31, 2017
  • 2 replies
  • 2270 views

I am just starting in AEM, and I'm trying to set up a workflow with some basic scripting. I have the most simple bit of ecmascript right now to log a variable. My question is, where are the strings that i'm logging going to? Is there a logger that i need to set up in configMgr, or is there an existing logfile?  

function getParticipant() { log.info("assigning approvers..."); var path = workItem.getWorkflowData().getPayload().toString(); log.info("itemPath: " + path); return workItem.getWorkflow().getInitiator(); }

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Please have a look at the details below:-

                 
 Log File Name Description
 access.log All access requests to CQ5 and the repository are registered here.
 request.log Each access request is registered here together with the response
 error.log Error messages (of varying levels of severity) are registered here.
 
<installation-path>\crx-quickstart\repository\
 
         
 Log File Name Description
 revision.log         Revision information for cluster index sync
 
<installation-path>\crx-quickstart\repository\repository\index
 
         
 Log File Name     Description
 redo.log If something goes wrong with index creation this log is created which holds redo index information. 
This log is not present by default.
 

 

I hope this would help you.

~kautuk

2 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
February 1, 2017

Please have a look at the details below:-

                 
 Log File Name Description
 access.log All access requests to CQ5 and the repository are registered here.
 request.log Each access request is registered here together with the response
 error.log Error messages (of varying levels of severity) are registered here.
 
<installation-path>\crx-quickstart\repository\
 
         
 Log File Name Description
 revision.log         Revision information for cluster index sync
 
<installation-path>\crx-quickstart\repository\repository\index
 
         
 Log File Name     Description
 redo.log If something goes wrong with index creation this log is created which holds redo index information. 
This log is not present by default.
 

 

I hope this would help you.

~kautuk

Kautuk Sahni
smacdonald2008
New Participant
January 31, 2017

AEM logs messages to the error.log under crx-quickstart\logs.

Also - when you want to create custom functionality in Workflow - use OSGi and Java. See this article: 

http://scottsdigitalcommunity.blogspot.ca/2013/10/creating-custom-aem-workflow-steps-that.html

There is also a video that you can watch. 

Hope this helps.