In the past, I configured org.ops4j.pax.logging.cfg to display JMS Health Stats on com.ca.im.common.core.jms.log
This was done in the (default path) /opt/IMDataAggregator/apache-karaf-<version>/etc/org.ops4j.pax.logging.cfg file.
It resulted in messages like this being written to the (default path) /opt/IMDataAggregator/apache-karaf-<version>/data/log/com.ca.im.common.core.jms.log file.
This file does not exist until the DEBUG is configured/enabled and begins writing messages. No messages to write, no log gets created.
2020-05-01 17:34:24,467 | DEBUG | pool-13-thread-1 | JmsBrokerHealthAnalyser | s.health.JmsBrokerHealthAnalyser 149 | | JMS Health Statistics => Memory: 168.89KB/678.13MB, Disk: 0/5.54GB, Pending: 7 msgs, Enqueue: 160 msg/sec, Dequeue: 164 msg/sec, Delay: 0 secs, Dropped: 0 msgs
2020-05-01 17:34:54,469 | DEBUG | pool-13-thread-1 | JmsBrokerHealthAnalyser | s.health.JmsBrokerHealthAnalyser 121 | | JMS Health: received statistics: temp=0, size=0
Now the log is not displayed anymore. This seems to happen after 21.2.4/5 upgrade.
DX NetOps Performance Management releases r21.2.2 and newer.
New version of apache-karaf-4.2.6 introduced in r21.2.2 and newer releases brought changes to how the logging is configured.
The configuration for logging karaf messages changed with the latest apache-karaf-4.2.6 release embedded in r21.2.2 and newer DX NetOps releases.
To resolve this configure the logging in the new release using these steps.
# # JMS Health logging # # log4j2.logger.JMSHealth.name = com.ca.im.core.jms.health # log4j2.logger.JMSHealth.level = DEBUG # log4j2.logger.JMSHealth.appenderRef.sift.ref = sift
# # JMS Health logging # log4j2.logger.JMSHealth.name = com.ca.im.core.jms.health log4j2.logger.JMSHealth.level = DEBUG log4j2.logger.JMSHealth.appenderRef.sift.ref = sift
The debug logging method noted in this articles Introduction does NOT apply to DX NetOps Performance Management releases r21.2.x and newer.
It applies ONLY to r20.2.x and earlier releases.
It does not work in the new r21.2.2+ releases.