CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | BSD 3.0 |
| ReleasedLast Release | Dec 2014 |
Maintained by Mirego.
MCHTTPRequestLogger is an extension to AFNetworking that logs every requests and responses as they are sent and received. It is a lot more verbose than AFHTTPRequestOperationLogger, by design.
Just add the following code to your UIApplicationDelegate, in the method -application:didFinishLaunchingWithOptions: and you should see extensive information for each requests/responses in your Xcode console.
[[MCHTTPRequestLogger sharedLogger] startLogging];
// Set the JSONOutputStyle property to have pretty printed JSON output
[[MCHTTPRequestLogger sharedLogger] setJSONOutputStyle:MCHTTPRequestLoggerJSONOutputStylePrettyPrinted];-fobjc-arc compiler flag to each implementation files in Target Settings > Build Phases > Compile Source.If you're using CocoaPods, there's nothing simpler.
Add the following to your Podfile
and run pod install
pod 'MCHTTPRequestLogger'
Don't forget to #import "MCHTTPRequestLogger.h" where it's needed.
MCHTTPRequestLogger is © 2013 Mirego and may be freely
distributed under the New BSD license.
See the LICENSE.md file.
Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We proudly build mobile applications for iPhone, iPad, Android, Blackberry, Windows Phone and Windows 8 in beautiful Quebec City.
We also love open-source software and we try to extract as much code as possible from our projects to give back to the community.