blob: d938d0fddda1851ad107c4200ca37fba6f5b5d37 [file] [log] [blame]
<div class="wiki-content maincontent"><h2>How can I enable detailed logging</h2>
<p>We use <link><page ri:content-title="www.slf4j.org"></page><link-body>slf4j</link-body></link> which allows the underlying logging implementation to be statically bound at startup.<br clear="none">
By default we ship with log4j but feel free to make your own choice.</p>
<p>If you've got log4j.jar on your classpath you can use a log4j.properties file to configure the logging levels. See the <a shape="rect" href="http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/resources/log4j.properties">log4j.properties example</a> for the kind of thing you'll need.</p>
<p>e.g. adding the following to your log4j.properties will enable tracing of ActiveMQ code:</p>
<p>in 4.x</p>
<structured-macro ac:macro-id="ddc0a6c6-949f-4615-9978-88251129510c" ac:name="code" ac:schema-version="1"><plain-text-body>
log4j.logger.org.apache.activemq=INFO
log4j.logger.org.apache.activemq.spring=WARN
</plain-text-body></structured-macro>
<p>in 3.x</p>
<structured-macro ac:macro-id="47d1fb82-e709-4a6c-9d6a-bb2429076cbc" ac:name="code" ac:schema-version="1"><plain-text-body>
log4j.logger.org.activemq=TRACE
</plain-text-body></structured-macro>
<h3>Getting help on log4j</h3>
<p>If you are new to log4j please see the <a shape="rect" href="http://logging.apache.org/log4j/docs/manual.html">log4j manual</a></p></div>