cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

expression robot

psuvendu
1-Newbie

expression robot

Hi, I am new to PDMLink. can anyone let me know where the expression robot will write the output.

Thanks..

4 REPLIES 4

it will be in background method server if you have configured background method sever

Thanks

shreyas

doehr
1-Newbie
(To:psuvendu)

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

asingh
1-Newbie
(To:asingh)

Just wanted to add to my earlier email

if (com.log.WorkFlowLog.logger.isTraceEnabled()) {

  com.log.WorkFlowLog.logger.trace("TEST STRING");

  }

Top Tags