In Spring Boot I use the standard practice of using a CommonRequestLoggingFilter bean to log the full requests in a debug profile.
2025-11-14T16:22:26.617+01:00 [362-exec-9] DEBUG mmonsRequestLoggingFilter - After request [POST /api/log, client=127.0.0.1, payload=[{"logCode":"CLI_501","message":"\"Sending HTTP post request - http://localhost:4360/api/timeseriescollection/get-multiple\"","time":"2025-11-14T15:22:25.759Z"}]]
In Python I'm using a variation of Curlify to log requests directly in curl mode. Does anything similar exist in the Java world?
2025-11-14T16:22:28.131Z|logger.py:321|DEBUG|log request: curl -X POST http://localhost:4360/api/log -H "Content-Type: application/json" -d '[{"logCode":"CLI_501","message":"Sending HTTP post request - http://localhost:4360/api/timeseriescollection/get-multiple","time":"2025-11-14T15:22:27.428Z"}]'
Being able to take complex requests and directly run them in curl is very convenient.