ibm-messaging / mq-jms-spring

Components to assist MQ JMS integration with Spring frameworks
Apache License 2.0
189 stars 102 forks source link

Enable Trace Logs on IBM MQ provider Classes #97

Closed patilvinodk closed 8 months ago

patilvinodk commented 1 year ago

Hi there,

I am trying to print the headers that are being sent while putting the message on MQ using this starter. I tried setting the property as mentioned in Logging section but the IBM MQ logs are not printed. Can somebody please let me know on how to enable the trace logs for the ibm mq provider classes ?

The package makes use of the logging capabilities within Spring. You can enable tracing of this specific component in your application's properties file by setting logging.level.com.ibm.mq.spring.boot=TRACE. Otherwise it uses the standard inheritance of logging configuration from logging.level.rootdownwards.

ibmmqmet commented 1 year ago

MQ JMS classes can be traced with a system property. Set com.ibm.msg.client.commonservices.trace.status to "ON".

Also read the docs here.

But that might be way too much information as that's the kind of trace primarily intended for IBM service to interpret. While you can see the message you've sent, it's going to be buried in a lot of other stuff.