Is it possible to log the service calls in Appium

Hi,

Is it possible to log the service calls in the request/response body in scenarios that get errors?

Thanks for reply