enabled logging of the AMQP1.0 FRAME for QPID JMS in L7 API Gateway
search cancel

enabled logging of the AMQP1.0 FRAME for QPID JMS in L7 API Gateway

book

Article ID: 387195

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The QPID JMS documentation explain how to enable this logging.

you can configure a logging implementation by using the org.apache.qpid.jms.
For debugging you can enable additional protocol trace logging from the Qpid Proton AMQP 1.0 library. There are two options to enable the logging:
  • By setting the environment variable PN_TRACE_FRM to true, which enables Proton to emit frame logging to stdout.
  • Add the option amqp.traceFrames=true to the connection URI. This enables the client to add a protocol tracer to Proton, and configure the org.apache.qpid.jms.provider.amqp.FRAMES Logger to TRACE level to include the output in the logs.

By changing the property "log.levels" in manage Cluster WIDE PROPERTIES, I can enable logging for the class of the package org.apache.qpid.jms.provider.amqp e.g  AmqpConsumer

org.apache.qpid.level = INFO
org.apache.qpid.jms.JmsConnection.level = INFO
org.apache.qpid.jms.provider.failover.FailoverProvider.level = INFO
org.apache.qpid.jms.provider.amqp.AmqpProvider.level = INFO
org.apache.qpid.jms.provider.amqp.AmqpConsumer.level = FINEST
org.apache.qpid.jms.provider.amqp.AmqpProducer.level = INFO
org.apache.qpid.jms.provider.amqp.AmqpAbstractResource = INFO 

org.apache.qpid.jms.provider.amqp.FRAMES.level = TRACE OR FINEST         

The line for the "org.apache.qpid.jms.provider.amqp.FRAMES.level" does not work .

Resolution

This is currently not possible the "org.apache.qpid.jms.provider.amqp.FRAMES " expect TRACE as value while for gateway trace is not a valid log level .

com.l7tech.server.log.SinkManagerImpl CONFIG: Ignoring invalid level 'TRACE           ', for logger 'org.apache.qpid.jms.provider.amqp.FRAMES'.

This would be a enhancement request which needs to be submitted as a idea on the API community