The setTraceOn() method begins a trace function that sends trace data to the file specified by the setTraceFile() method. All network traffic flow between the client application and the Director components will be traced until a setTraceOff() method is issued.
Syntax
public void setTraceOn(void);
Example
TrilGenClient testClient = new TrilTGenClient();
String fileName = “/temp/client.trc”; //Trace o/p to
client.trc
testClient.setTraceFile(fileName); //Set trace file name
testClient.setTraceOn(); //Begin tracing
.
.
.
testClient.setTraceOff(): //Stop tracing