Trace architecture (C)

In MQe, trace is configured globally. This means that trace is enabled for the device, and when enabled, all C MQe applications generate trace.

You can configure the location where you want trace files to be written.

Each application generates a unique file in the form MQEnnnnn.trc, where "nnnnn" is the process identifier of the application.

MQe trace files are written in a binary format to minimize their size.

You can either send these binary trace files directly to an IBM Service Representative to decode them or, alternatively, use the MQenativeTraceFormatter.exe utility provided with MQe. This utility runs on Windows, but does not run on PocketPC. It takes the trace file as an argument and prints the decoded output to standard out. The output can be captured in a file by running a command, such as:
MQenativeTraceFormatter.exe AMQ12345.trc > AMQ12345.txt
This will decode the file AMQ12345.trc and place the output in a file called AMQ12345.txt.

Parent topic: Tracing and logging with C