Reqres alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view Reqres alternatives based on common mentions on social networks and blogs.
-
CocoaLumberjack
A fast & simple, yet powerful & flexible logging framework for Mac and iOS -
SwiftyBeaver
Convenient & secure logging during development & release in Swift 4 & 5 -
XCGLogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number. -
GodEye
Automaticly display Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code based on Swift. Just like God opened his eyes -
TinyConsole
📱💬🚦 TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible. -
CleanroomLogger
CleanroomLogger provides an extensible Swift-based logging API that is simple, lightweight and performant -
Willow
Willow is a powerful, yet lightweight logging library written in Swift. -
KZLinkedConsole
Clickable links in your Xcode console, so you never wonder which class logged the message. -
QorumLogs
:closed_book: Swift Logging Utility for Xcode & Google Docs -
AFNetworkActivityLogger
AFNetworking 3.0 Extension for Network Request Logging -
Diagnostics
Allow users to easily share Diagnostics with your support team to improve the flow of fixing bugs. -
JustLog
JustLog brings logging on iOS to the next level. It supports console, file and remote Logstash logging via TCP socket with no effort. Support for logz.io available. -
LxDBAnything
Automate box any value! Print log without any format control symbol! Change debug habit thoroughly! -
Gedatsu
Gedatsu provide readable format about AutoLayout error console log -
XLFacility
Elegant and extensive logging facility for OS X & iOS (includes database, Telnet and HTTP servers) -
Twitter Logging Service
Twitter Logging Service is a robust and performant logging framework for iOS clients -
Aardvark
Aardvark is a library that makes it dead simple to create actionable bug reports. -
SwiftyTextTable
A lightweight library for generating text tables. -
Loggerithm
A lightweight Swift logger, uses print in development and NSLog in production. Support colourful and formatted output. -
BlockTypeDescription
Show type signatures when logging blocks -
puree
[Obsoleted] A log collector for iOS (new version! -> https://github.com/cookpad/Puree-Swift) -
Logkit
An efficient logging library for OS X, iOS, watchOS, and tvOS – written in Swift. Log to console, file, HTTP service, or your own endpoint. Simple to get started, but smartly customizable. -
Atlantis
A powerful input-agnostic swift logging framework made to speed up development with maximum readability. -
AEConsole
Customizable Console UI overlay with debug log on top of your iOS App -
CleanroomASL
A Swift-based API for reading from & writing to the Apple System Log (more commonly known somewhat inaccurately as "the console") -
TraceLog
TraceLog is a highly configurable, flexible, portable, and simple to use debug logging system for Swift and Objective-C applications running on Linux, macOS, iOS, watchOS, and tvOS. -
ReflectedStringConvertible
A protocol that allows any class to be printed as if it were a struct or a JSON object. -
Lighty
Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift. -
AELog
Simple, lightweight and flexible debug logging framework written in Swift -
Spy
Spy is a flexible, lightweight, multiplatform logging utility written in pure Swift. It allows to log with different levels and on different channels. You can define what levels and channels actually are. -
StoryTeller
A log should tell a story, not drown the reader in irrelevance.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Reqres or a related project?
README
[ackee|Reqres](Resources/cover-image.png)
Reqres is a simple library for logging all requests and responses in your app. It supports Alamofire and also requests made via native NSURLSession.
⬆️ POST 'https://ackee.cz/examples'
Headers: [
Accept-Encoding : gzip;q=1.0, compress;q=0.5
Accept-Language : en-US;q=1.0
Content-Type : application/json
User-Agent : Reqres_Example/org.cocoapods.demo.Reqres-Example (1; OS Version 9.3 (Build 13E230))
Content-Length : 13
]
Body: {
"foo" : "bar"
}
...
⬇️ POST https://ackee.cz/examples (✅ 201 Created) [time: 0.54741 s]
Headers: [
Vary : Authorization,Accept-Encoding
Content-Encoding : gzip
Content-Length : 13
Server : Apache
Content-Type : application/json
Date : Mon, 05 Sep 2016 07:33:51 GMT
Cache-Control : no-cache
]
Body: {
"foo" : "bar"
}
Installation
CocoaPods
Reqres is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Reqres"
Carthage
You can use Carthage. Specify in Cartfile:
github "AckeeCZ/Reqres"
Run carthage update
to build the framework and drag the built Reqres.framework into your Xcode project. Follow build instructions. New Issue.
Usage
Initialization is different for usage with Alamofire and NSURLSession.
Alamofire
Create your SessionManager
with proper configuration to make it work with Alamofire.
let configuration = Reqres.defaultSessionConfiguration()
configuration.httpAdditionalHeaders = SessionManager.defaultHTTPHeaders
let alamofireManager = SessionManager(configuration: configuration)
Reqres.sessionDelegate = alamofireManager.delegate
Then you must use this manager for all requests, so replace all Alamofire.request(...)
to alamofireManager.request(...)
Usage without Alamofire
Register Reqres on application startup and it will monitor and log any requests you make via NSURLSession or NSURLConnection.
Reqres.register()
Customization
You can do some settings to make it fit your needs.
Custom logger
Reqres uses default print()
for logging to avoid unnecessary dependencies but it's ready for any logging framework. Make your custom logger class which complies to ReqresLogging
protocol and set it to Reqres, that's all.
class MyLogger: ReqresLogging {
...
}
Reqres.logger = MyLogger()
Log level
You can use 3 different log levels:
- None - made for production use, it completely disables all Reqres functionality
- Light - Logs only basic info (method, url, status code and time)
⬆️ POST 'https://ackee.cz/examples' ... ⬇️ POST https://ackee.cz/examples (✅ 201 Created) [time: 0.54741 s]
- Verbose - Logs also headers and body (see example above)
Reqres uses Verbose
log level by default. To change log level just set right value to Reqres.logger.logLevel
Emoji
Reqres uses emoji to make log better to read and to make it at least a little funny and nice. If you dont't like that, you can turn it off of course.
Reqres.allowUTF8Emoji = false
Forking this repository
If you use Reqres in your projects drop us as tweet at @ackeecz. We would love to hear about it!
Sharing is caring
This tool and repo has been opensourced within our #sharingiscaring
action when we have decided to opensource our internal projects.
Author
Ackee team. We were inspired by andysmart's Timberjack
License
Reqres is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Reqres README section above
are relevant to that project's source code only.