Search code examples
aemecmascript-5

View logs recorded by workflow initiated scripts


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


Solution

  • By default everything goes into your /log/error.log file unless configured otherwise.

    log.info will only be visible if your logging is set to INFO level (or below, i.e. DEBUG etc.).