spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.35k stars 38.03k forks source link

http trace logging settings adapter #32783

Closed xenoterracide closed 4 months ago

xenoterracide commented 5 months ago

as far as I know one doesn't exist... it's really annoying remembering and figuring out how to do this right for every single client, and figuring out which client is actually used.

if this would be better solved by spring boot, move the ticket please.

https://stackoverflow.com/questions/53215038/how-to-log-request-response-using-java-net-http-httpclient https://blog.mindorks.com/how-to-enable-logging-in-okhttp/ https://hc.apache.org/httpcomponents-client-4.5.x/logging.html

Since I end up using one of springs client I'd ultimately like to set a property in application.properties that is flexible to the level of details, but works for any given underlying client.

Spring Boot v3.2.5, Spring v6.1.6

xenoterracide commented 4 months ago

closing in partial favor of https://github.com/spring-projects/spring-boot/issues/40872 I doubt this will be fixed here