INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_tracelevel_set()

The mi_tracelevel_set() function sets the tracing level for specified trace classes.

Syntax

Usage

A trace class name must be inserted into the systraceclasses system catalog table before mi_tracelevel_set() can run. By default, tracing is off; that is, the current trace level is set to zero for all trace classes.

A trace level can be any integer from 0 to the maximum long integer value for the development platform.

Return Values

MI_OK

The function was successful.

MI_ERROR

The function was not successful.

Example

The following example sets the current level of class funcEntry to 50 and the level for class outData to 35:

The following typical trace statement would then execute, and its output would be written to the current trace file, because the value (10) in the argument to DPRINT is not greater than the current level (50) of funcEntry.

Related Topics

For additional information, see "Tracing" and the description of the mi_tracefile_set() function.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.