Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 496 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 496 Bytes

RestTemplate logging showcase

This is a showcase how to setup logging of HTTP communication using spring RestTemplate.

RestTemplate logs everything besides bodies (which makes sense). This logging is on DEBUG level. The showcase contains how to enable it for log4j (through commons-logging) and for slf4j (without commons-logging) - use maven profiles to see the difference.

Moreover, there is a simple interceptor showing how could be possible to log the body assuming it is a text-based.