I've been trying to figure out what I'm missing with my RestTemplate
setup (particularly OAuth2RestTemplate
) so I want to see the logs for debugging. I found one possible solution for it, but nothing about the operation of the RestTemplate
gets shown.
What I've done so far is to replace the default Logback logging mechanism in my Spring Boot app by following the configuration shown here. When I run my Spring Boot application after changing the logging dependencies, all I see on the console is the Spring logo (in ASCII) and nothing else. I've already defined a log4j-spring.properties
in src/main/resources
with the property defined in the previous link.
What else am I missing here? Do I need to run my Spring Boot app in debug mode? If so, how do I do that? Also, how do I set this up using the default Logback mechanism?