Search code examples
swiftmoya

How to disable Moya_Logger from Moya framework


I am using Moya framework as network layer for the Alamofire and i am interested in if it is possible to switch off Moa_Logger that logging all responses and request from my application?

I am trying to configure plugin but still i need some help.

[NetworkLoggerPlugin(verbose: false, responseDataFormatter: JSONResponseDataFormatter)]


Solution

  • You can just not include anything into plugins:

    var provider = RxMoyaProvider<MyAPI>()