Logging Interceptor

The Logging Interceptor is a pretty trivial Interceptor which just logs to Jakarta Commons Logging or log4j as messages are sent or acknowledged on a broker.

The default logging level used is INFO. If you want to increase/reduce the logging you can use change it via commons logging or log4j.

You can enable the logging interceptor using the following XML configuration

<beans>
  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

  <broker useJmx="false" persistent="false" xmlns="http://activemq.apache.org/schema/core">

    <plugins>
    
      <!-- lets enable detailed logging in the broker -->
      <loggingBrokerPlugin/>
      
    </plugins>
  </broker>

</beans>
Graphic Design By Hiram