layout: default_md title: How can I enable detailed logging title-class: page-title-activemq5 type: activemq5

 FAQ > Configuration > How can I enable detailed logging

How can I enable detailed logging

We use slf4j which allows the underlying logging implementation to be statically bound at startup.

By default we ship with log4j but feel free to make your own choice.

If you‘ve got log4j.jar on your classpath you can use a log4j.properties file to configure the logging levels. See the log4j.properties example for the kind of thing you’ll need.

e.g. adding the following to your log4j.properties will enable tracing of ActiveMQ code:

in 4.x

log4j.logger.org.apache.activemq=INFO
log4j.logger.org.apache.activemq.spring=WARN

in 3.x

log4j.logger.org.activemq=TRACE

Getting help on log4j

Since ActiveMQ 5.17.0, ActiveMQ uses log4j2. You can find log4j2 documentation here.

ActiveMQ 5.16.4+ uses reload4j, a fork of log4j1 containing important security fixes, with the same configuration as log4j1.

Before ActiveMQ 5.16.4, ActiveMQ uses log4j1.