Use this procedure to enable the TSAPI Message Tracing feature.
Procedure
Set and export the environment variable CSTATRACE before starting your TSAPI application. The CSTATRACE environment variable specifies the name of the file where the TSAPI messages will be logged.