Specify the trace-output file

By default, the database server puts all trace messages in a system-defined trace-output file with a .trc file extension.

For the name of this system-defined trace-output file, see the description of mi_tracefile_set() in the Informix® DataBlade® API Function Reference.

You can change the destination of trace messages with the mi_tracefile_set() function. With this function, you can specify the name of the trace-output file. For example, the following call to mi_tracefile_set() sets the trace file to a UNIX™ file named test14_may2.trc in the /d2/blades/tests directory:
mi_integer status;
...
status =
   mi_tracefile_set("/d2/blades/tests/test14_may2.trc");

For more information, see the description of the mi_tracefile_set() function.