本文介绍了Android 改进了 Logcat 中的网络请求响应日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的老板想要更好的网络连接日志记录.他说我们需要更多人类可读的请求-响应日志.我们已经有 Stetho 和 HttpLoggingInterceptor.我在互联网上搜索过,但找不到与这些不同的东西.真的有更好的日志库我可以按照老板的要求使用吗?

My boss wants a better logging for network connection. He says we need more human-readable request-response log. We do already have Stetho and HttpLoggingInterceptor. I've searched in internet but couldn't find something different than these. Is there really better logging library I can use as my boss wanted ?

推荐答案

FB Flipper 是 Stetho 的替代品.您运行的桌面应用程序可以连接并允许您构建与应用程序部分(如网络或 UI 布局)通信的插件.https://fbflipper.com/

FB Flipper is the replacement for Stetho. A desktop app you run that connects and allows you to build plugins that talk to parts of your app like networking or UI layout. https://fbflipper.com/

我还没有尝试过,但是 https://github.com/httptoolkit/httptoolkithttps://github.com/httptoolkit/httptoolkit-android 看起来很有希望.

I haven't tried it but https://github.com/httptoolkit/httptoolkit and https://github.com/httptoolkit/httptoolkit-android looks promising.

https://github.com/ChuckerTeam/chucker

这篇关于Android 改进了 Logcat 中的网络请求响应日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 19:51