Skip to content

Dwarven/AlamofireNetworkLogger

Repository files navigation

AlamofireNetworkLogger

CocoaPods Compatible Platform Twitter License

Network Logger for Alamofire

Requirements

  • iOS 9.0+ / macOS 10.11+ / tvOS 9.0+ / watchOS 2.0+
  • Swift 3.0+
  • Alamofire 4.0+

Podfile

To integrate AlamofireNetworkLogger into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'AlamofireNetworkLogger'

Preview

How to use

import AlamofireNetworkLogger

Add the following code to AppDelegate.swift application:didFinishLaunchingWithOptions::

AlamofireNetworkLogger.shared.startLogging()
AlamofireNetworkLogger.shared.level = .debug // or .info .error .off