Tracing XMS .NET applications with mqclient.ini
From IBM® MQ 9.4.0, you can use the mqclient.ini file to enable traces for the XMS .NET client libraries.
About this task
From IBM MQ 9.4.0, the mqclient.ini file includes a Trace stanza. To enable trace, you must set the appropriate properties of the Trace stanza. If a property is set to an invalid value, then the properties are ignored.
You can also enable and disable tracing dynamically. When the application is running, if the mqclient.ini file is modified, created, or deleted, the XMS .NET client reads the properties of the trace section again and then enables or disables the trace, so that restart of the application is not needed.
Note: There are several different ways to enable trace.
For the XMS
.NET client libraries built against .NET Framework, the order of precedence is as follows:
- App.Config
- Environment variable
- mqclient.ini
For the XMS
.NET client libraries built against .NET Standard and .NET 6, the order of precedence is as follows:
- Environment variable
- mqclient.ini