title: Logging to RabbitMQ from a spring boot application
body: <p>I'm trying to use the AmqpAppender to log to a RabbitMQ exchange from a trivial spring boot application.  I have a topic exchange "demo.log" defined and a queue bound to it with "#" as the routing key. I don't seem to be getting any messages to RabbitMQ using the logbook-spring.xml file below.  Can someone please point out what I'm missing here?</p>
  
  <p>Thanks!</p>
  
  <p>--john</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;include resource="org/springframework/boot/logging/logback/base.xml" /&gt;
  
    &lt;appender name="amqp" class="org.springframework.amqp.rabbit.logback.AmqpAppender"&gt;
      &lt;host&gt;localhost&lt;/host&gt;
      &lt;port&gt;5672&lt;/port&gt;
      &lt;virtualHost&gt;/&lt;/virtualHost&gt;
      &lt;username&gt;guest&lt;/username&gt;
      &lt;password&gt;guest&lt;/password&gt;
      &lt;exchangeType&gt;topic&lt;/exchangeType&gt;
      &lt;exchangeName&gt;demo.log&lt;/exchangeName&gt;
      &lt;applicationId&gt;demo&lt;/applicationId&gt;
      &lt;routingKeyPattern&gt;test&lt;/routingKeyPattern&gt;
      &lt;contentType&gt;text/plain&lt;/contentType&gt;
      &lt;maxSenderRetries&gt;2&lt;/maxSenderRetries&gt;
    &lt;/appender&gt; 
  
    &lt;logger name="com.example" level="DEBUG"&gt;
      &lt;appender-ref ref="amqp"/&gt;
    &lt;/logger&gt;
  
  &lt;/configuration&gt;
  </code></pre>