At the moment, only the HTTP status is logged if a request fails. This is insufficient for effective debugging and monitoring. To enhance our logging capabilities, we need a solution that consistently captures the following details for every request and response:
Request Details:
- Full URL
- HTTP Method
- Request Headers
- Request Body
- Response Body
- Status Code
- Response Headers
- Response Body
By capturing these details, we can better troubleshoot issues and understand client interactions. The log level for this detailed logging could be set to debug.