Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

View logs recorded by workflow scripts

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

2 Replies

Avatar

Level 10

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. 

Avatar

Correct answer by
Administrator

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