Tracing IBM MQ .NET applications using environment variables
The environment variable MQDOTNET_TRACE_ON is used to enable trace for redistributable clients.
About this task
The MQDOTNET_TRACE_ON environment variable checks whether the IBM® MQ trace directory is available or not. If the trace directory is available, the trace file is generated in the trace directory. However, if IBM MQ is not installed, the trace file is copied to the current working directory.
Other environment variables including MQERRORPATH, MQLOGLEVEL, MQSERVER, and so on, that are used for IBM MQ classes for .NET Framework, can be used for IBM MQ classes for .NET Standard and .NET 6 and work in the same way.
Procedure
To enable tracing, set the environment variable to specify the level of tracing that you
want.
Values
equal to and less than 0 do not enable trace, 1 enables default trace and values greater than 1
enable detail tracing.