setTraceFile() - trillium_quality - Latest

Trillium Director SDK Reference

Product type
Software
Portfolio
Verify
Product family
Trillium™ software
Product
Trillium™ software > 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
L1_Product_Gateway
Verify
L2_Product_Segment
Data Quality
L3_Product_Brand
Precisely Trillium
L4_Investment_Segment
Legacy DQ
L5_Product_Group
Legacy DQ - Application
L6_Product_Name
Trillium Quality

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