Skip to content

jimirocks/RestTemplateLogging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages