Enabling logging for org.apache.activemq.artemis.core.protocol.core.impl in Artemis
Issue
- With AMQ broker in EAP 7, enabling the TRACE logger following this article, i am able to see the logging of this package, org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl
2018-09-21 10:58:40,291 TRACE [org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl] (Thread-1 (ActiveMQ-remoting-threads-ActiveMQServerImpl::serverUUID=656723fa-bd58-11e8-a965-68f7287c2854-1427541101)) Sending packet nonblocking PACKET(CreateSessionResponseMessage)[type=31, channelID=1, packetObject=CreateSessionResponseMessage, serverVersion=128] on channeID=1
2018-09-21 10:58:40,291 TRACE [org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl] (Thread-1 (ActiveMQ-remoting-threads-ActiveMQServerImpl::serverUUID=656723fa-bd58-11e8-a965-68f7287c2854-1427541101)) Writing buffer for channelID=1
2018-09-21 10:58:40,294 TRACE [org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl] (Periodic Recovery) Setting handler on Channel[id=USER, handler=null] as org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler@20240183
2018-09-21 10:58:40,298 TRACE [org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl] (Periodic Recovery) Sending blocking PACKET(PacketImpl)[type=61, channelID=10, packetObject=PacketImpl]
2018-09-21 10:58:40,299 TRACE [org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl] (Thread-2 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$4@4005e1d8)) Sending packet nonblocking PACKET(SessionXAGetInDoubtXidsResponseMessage)[type=62, channelID=10, packetObject=SessionXAGetInDoubtXidsResponseMessage, xids=[]] on channeID=10
2018-09-21 10:58:40,300 TRACE [org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl] (Thread-2 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$4@4005e1d8)) Writing buffer for channelID=10
However, if i use the standalone Red Hat AMQ 7.2, create a broker and modify the /etc/logging.properties
file as below,
# Root logger level
logger.level=INFO
# ActiveMQ Artemis logger levels
logger.org.apache.activemq=TRACE
logger.org.apache.activemq.artemis.core.server.level=TRACE
logger.org.apache.activemq.artemis.journal.level=INFO
logger.org.apache.activemq.artemis.utils.level=TRACE
logger.org.apache.activemq.artemis.jms.level=TRACE
logger.org.apache.activemq.artemis.integration.bootstrap.level=TRACE
logger.org.apache.activemq.artemis.core.protocol.core.impl=TRACE
logger.org.eclipse.jetty.level=WARN
# Root logger handlers
logger.handlers=FILE,CONSOLE
# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush
handler.CONSOLE.level=DEBUG
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN
# File handler configuration
handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler
handler.FILE.level=DEBUG
handler.FILE.properties=suffix,append,autoFlush,fileName
handler.FILE.suffix=.yyyy-MM-dd
handler.FILE.append=true
handler.FILE.autoFlush=true
handler.FILE.fileName=${artemis.instance}/log/artemis.log
handler.FILE.formatter=PATTERN
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d %-5p [%c] %s%E%n
I don't see the TRACE logging for this package happening. What is the correct configuration of logger to have this logging of package/class enabled ?
Environment
- Red Hat AMQ
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.