问题
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