setTraceFile() - trillium_quality - 17.1

Trillium Director SDK Reference Guide

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Quality
Version
17.1
Language
English
Product name
Trillium Quality
Title
Trillium Director SDK Reference Guide
Topic type
Overview
Installation
How Do I
Configuration
Administration
Reference
First publish date
2008

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