The setTraceFile() method sets the name of the trace file that is used to receive client trace data. This method must be called before using the setTraceOn() method.
To simplify troubleshooting, trace files are segmented into 200 megabyte files with numeric identifiers appended to each file’s extension. For example, when a trace file named trace.trc reaches 200 megabytes, it is renamed to trace.trc0001 and logging continues in trace.trc. When trace.trc again reaches 200 megabytes, the file is renamed to trace.trc0002, and so on.
Note: This method does not evaluate whether the file name is valid for the operating
system.
Syntax
public void setTraceFile(java.lang.String fileName);
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