Logging with Spring Cloud Stream

To wrap things up, it would be nice to actually see how Spring Cloud Stream is handling things. To do so, we can dial up the log levels in application.yml like this:

    logging: 
       level: 
        org: 
          springframework: 
            cloud: DEBUG 
            integration: DEBUG 

This last code dials up the log levels for both Spring Cloud Stream and its underlying technology, Spring Integration. It's left as an exercise for the reader to change RabbitTemplate log levels by setting org.springframework.amqp=DEBUG and see what happens.

With these levels dialed up, if we run our application, we can see a little of this:

This previous screenshot shows a ...

Get Learning Spring Boot 2.0 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.