Logging with Retrofit 2

前端 未结 21 1324
春和景丽
春和景丽 2020-11-22 07:33

I\'m trying to get the exact JSON that is being sent in the request. Here is my code:

OkHttpClient client = new OkHt         


        
21条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 08:02

    Most of the answer here covers almost everything except this tool, one of the coolest ways to see the log.

    It is Facebook's Stetho. This is the superb tool to monitor/log your app's network traffic on google chrome. You can also find here on Github.

提交回复
热议问题