As of version 5.5.0, ActiveMQ uses slf4j as the logging framework. This allows us to support MDC logging.
See more details about MDC logging in the logback manual.

Currently ActiveMQ add three pieces of information to the diagnostic context:

Key

Description

activemq.broker

Name of the broker logging event

activemq.connector

Address of the connector which is serving the request

activemq.destination

Name of the target destination of a message

For example if you use log format like

in an environment where multiple brokers use the same log (like unit tests), you can expect the output similar to this one

© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram