title: Spring AMQP logs repeating despite disabling in log4j.xml
body: <p>I am receiving the following logs repeatedly while using Spring AMQP:</p>
  
  <blockquote>
    <p>01:21:54.323 [SimpleAsyncTaskExecutor-1] DEBUG
    o.s.a.r.l.BlockingQueueConsumer - Retrieving delivery for Consumer:
    tag=[amq.ctag-XAaHUPISVTmjpL-am3y15g], channel=Cached Rabbit Channel:
    AMQChannel(....),
    acknowledgeMode=AUTO local queue size=0 01:21:55.325
    [SimpleAsyncTaskExecutor-1] DEBUG o.s.a.r.l.BlockingQueueConsumer -
    Retrieving delivery for Consumer:
    tag=[amq.ctag-XAaHUPISVTmjpL-am3y15g], channel=Cached Rabbit Channel:
    AMQChannel(....),
    acknowledgeMode=AUTO local queue size=0 01:21:56.327</p>
  </blockquote>
  
  <p>My <code>log.xml</code> file looks like this</p>
  
  <pre><code>&lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt;
  
  &lt;!-- Appenders --&gt;
  &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;param name="Target" value="System.out" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%-5p: %c - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  ....
  &lt;logger name="org.springframework.amqp.rabbit"&gt;
      &lt;level value="off" /&gt;
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.amqp"&gt;
      &lt;level value="off" /&gt;
  &lt;/logger&gt;
  &lt;!-- Root Logger --&gt;
  &lt;root&gt;
      &lt;priority value="off" /&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/root&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>Upon closer inspection I found that the <code>BlockingQueueConsumer</code> class in <code>org.springframework.amqp.rabbit</code> emits the above logs and the exact line is </p>
  
  <pre><code>if (logger.isDebugEnabled()) {
              logger.debug("Retrieving delivery for " + this);
          } 
  </code></pre>
  
  <p>My question is how is this possible given the above <code>log4j.xml</code> entries. Am I missing something. I am using the following loggers <code>slf4j-api-1.6.6.jar,slf4j-log4j12-1.6.6.jar,log4j-1.2.15.jar</code></p>
  
  <p>EDIT</p>
  
  <p>With reference to the comments by zapl I started this project with <code>STS</code> and used a new <code>Spring MVC Project</code> the log files weren't manually configured. Is the project reading the log file from some other xml? </p>