Logging response and request in Moya 14

不羁的心 提交于 2020-05-17 06:27:08

问题


Is there any way to log my request and response in Moya 14 without using verbose?

container.register(NetworkLoggerPlugin.self) { r in
   NetworkLoggerPlugin(verbose: true)
   }.inObjectScope(.container)

Thank you in advance.


回答1:


MoyaProvider(plugins: [NetworkLoggerPlugin()])



来源:https://stackoverflow.com/questions/61479627/logging-response-and-request-in-moya-14

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!