PreviousNextIndex
Nodes and Palette Options > Detailed Palette Option Descriptions > Trace
 
Trace

Type

Tracking item

Available from

Purpose

The primary use of the Trace item is as a debugging tool during application development. You can use the Trace item to:

Behavior

During simulation or run time, the Trace item takes the value of the Text field and any selected Variable or Variable Field and writes the value to a log file. The application locates this log file in the ProjectName/data/log directory, where ProjectName represents the name of the speech application project.

To view the log file contents in Dialog Designer, locate the appropriate log file in this directory and double-click it. To view the log file contents in a run-time environment, locate the appropriate log file on the application server, and view it with your text viewer or word processor of choice.

Tip:

The name of the log file for the current day is always trace.log. Each time you run a simulation, Dialog Designer appends the log data to the end of this file. At the end of each day, Dialog Designer renames the log file to: trace.log.yyyy-mm-dd, where yyyy-mm-dd represents the date on which the log file was compiled.

During simulation, Dialog Designer also displays tracing data in the Console view display, and you can review it there.

Note:

Trace log data is written using log4j logging technology. Because this is a new technology and information available is constantly changing, for more information about log4j technology, Avaya recommends that you perform an Internet search with the search term "log4j".

The Trace item requires that you enable it before the system recognizes it during simulation or run time. For this reason, if you use a Trace item in a call flow, and if you do not enable tracing output during simulation or run time, the system ignores it and does not write any trace data to the log file.

To enable tracing during simulation:

  1. From the Window menu, click Preferences.
  1. In the navigation pane on the left, click the plus [+] symbol next to the Dialog Designer entry. The Dialog Designer entry expands to show its subentries.
  1. In the expanded subentry list, click Avaya Application Simulator.
  1. Enable both the following options (among others displayed, as desired):
  1. These and other Avaya Application Simulator preferences are described Application Simulation Preferences.
  1. Click OK.

Because the Trace item is considered primarily a development and debugging tool, it is not normally used with a deployed application during run time. The log files that are generated during run time can consume large amounts of drive space. However, they may be useful when testing or troubleshooting an application deployment.

To enable or disable tracing in a run-time environment:

  1. Deploy and configure the speech application on the application server.
  1. Edit the ddrt.properties file in the /data directory. A ddrt.properties file is available in the project /data directory that controls logging parameters.

Properties

Priority

Log Entry

Description

Fatal

FATAL

A situation in which the application would crash.

Error

ERROR

A situation that would cause the application to generate an error.

Warning

WARN

A situation that would cause the application to generate a warning.

Info

INFO

A situation that would cause the application to generate an informational message.

Debug

DEBUG

A situation that would cause the application to generate debugging data.



PreviousNextIndex

©2009, Avaya Inc. All rights reserved.