Popularity
0.5
Declining
Activity
0.0
Stable
12
1
2

Programming language: Swift
License: MIT License
Tags: Swift     Logging     Networking    
Latest version: v0.1.1

πŸ“’ AlamofireLogbook alternatives and similar libraries

Based on the "Networking" category.
Alternatively, view πŸ“’ AlamofireLogbook alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of πŸ“’ AlamofireLogbook or a related project?

Add another 'Networking' Library

README

πŸ“’ AlamofireLogbook

An Alamofire network activity logger view

<!--CI Status--> Version MIT license Platform Swift Version PRs Welcome

Installation

AlamofireLogbook is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AlamofireLogbook'

Usage

To start logging, import the libraray in your network layer and use the method log() on your Alamofire DataRequest instance like the following example:

import Alamofire
import AlamofireLogbook

Alamofire
.request("https://httpbin.org/get")
.log()
.responseJSON { response in
// Your code
}

If you want to log each request yourself

  1. Conform to AlamofireResponseListener
  2. implement swift recievedResponseFor(item : LogItem)
  3. assign your delegate class in the app delegate to AlamofireLogbook.shared.delegate

OR to show the Network activity logs view just call

AlamofireLogbook.show()

and you'll get A full searchable log

screenshot_01 screenshot_02 screenshot_03 screenshot_04

πŸ’‘Tip

Use the action button on the top right of the request details page to copy a readable formatted string of both the request and response. πŸ˜‰

Example

To try the example project:

run pod try AlamofireLogbook in your ternimal

or

clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.0+
  • Xcode 9+
  • Swift 3.2+
  • AlamofireLogbook is a plugin for Alamofire framework

Contributions

If you have some ideas on how to improve the framework, Fork it, implement your changes and create that pull request already πŸ˜‰.

All contributions are welcome πŸ€—.

Author

Built with πŸ’™ by mikeAttia

License

AlamofireLogbook is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the πŸ“’ AlamofireLogbook README section above are relevant to that project's source code only.