Network Logger for Alamofire
- iOS 9.0+ / macOS 10.11+ / tvOS 9.0+ / watchOS 2.0+
- Swift 3.0+
- Alamofire 4.0+
To integrate AlamofireNetworkLogger into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'AlamofireNetworkLogger'
import AlamofireNetworkLogger
Add the following code to AppDelegate.swift application:didFinishLaunchingWithOptions:
:
AlamofireNetworkLogger.shared.startLogging()
AlamofireNetworkLogger.shared.level = .debug // or .info .error .off