Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi, I am new to PDMLink. can anyone let me know where the expression robot will write the output.
Thanks..
it will be in background method server if you have configured background method sever
Thanks
shreyas
Hi there,
Could you be a bit more specific? Do you mean the expression robot object in Workflows?
Please advise,
Daryl
Hi Suvendu,
Its better you write a Workflow logger class
package com.log;
import org.apache.log4j.Logger;
public class WorkFlowLog{
public static Logger logger = Logger.getLogger("com.log.WF");
}
Enable logger "com.log.WF" in log4jMethodServer.properties
Based on the level you enabled
Suppose TRACE, add line of code mentioned below in the expression robot in your Workflow.
if (log.isTraceEnabled()) {
log.trace("TEST STRING");
}
System will create a new log file called "com.log.WF.log" under <WT_HOME>/logs
Thanks,
Aditya
Just wanted to add to my earlier email
if (com.log.WorkFlowLog.logger.isTraceEnabled()) {
com.log.WorkFlowLog.logger.trace("TEST STRING");
}