DataBlade API Programmer's Manual
Chapter 10: Tracing
Home
Contents
Index
Master Index
New Book
In This Chapter
The DataBlade API provides simple tools for inserting both plain and internationalized traces in code.
Trace messages are grouped into user-defined
trace classes
. These classes enable you to treat related messages in the same way. The DataBlade API provides a function that sets a trace class level, which determines how heavy you want tracing of that class to be.
Each tracepoint is assigned a trace class and a threshold. If a tracepoint threshold is not greater than the current trace class level, the message writes to the output file.
The simplest scheme is to have only two trace classes: tracing and no tracing. In this scheme, any tracepoint with a low enough threshold will print; all others will not. A more complex scheme could have four states: no tracing, light tracing, medium tracing, and heavy tracing.
Tracing is available only in the server.
DataBlade API Programmer's Manual
, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.