OkHttpClient.Builder httpClient = new OkHttpClient.Builder() HttpLoggingInterceptor logging = new HttpLoggingInterceptor() Luckily OkHttp already ships with this interceptor and you only need to activate it for your OkHttpClient.
![how to run monitor in android studio 3.0.1 how to run monitor in android studio 3.0.1](https://tekeye.uk/android/images/studio-screen-capture.png)
Since logging isn’t integrated by default anymore in Retrofit 2, we need to add a logging interceptor for OkHttp.
![how to run monitor in android studio 3.0.1 how to run monitor in android studio 3.0.1](https://1.bp.blogspot.com/-OVuyWY8I9Sk/WrlL1OCty2I/AAAAAAAAFKs/RFRmYNYxPQU0TPpxyebexwT8YzLnL1q6ACLcBGAs/s1600/on_demand_quickboot.png)
While developing your app and for debugging purposes it’s nice to have a log feature integrated to show request and response information. You can add it to your project with a quick edit of your adle: compile '3:logging-interceptor:3.8.0' The developers of OkHttp have released a separate logging interceptor project, which implements logging for OkHttp. Retrofit 2 completely relies on OkHttp for any network operation. If you’re using the first major version of Retrofit, please follow the link to the related post.
HOW TO RUN MONITOR IN ANDROID STUDIO 3.0.1 HOW TO
We’ve published a blog post on how to debug requests using Retrofit 1.