setTraceFile() - trillium_quality - Latest

Trillium Director SDK Reference

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Quality
Version
Latest
ft:locale
en-US
Product name
Trillium Quality
ft:title
Trillium Director SDK Reference
Copyright
2024
First publish date
2008
ft:lastEdition
2024-10-18
ft:lastPublication
2024-10-18T15:24:49.097000

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