[](https://travis-ci.org/Red Davis/REDHTTPLogger)
REDHTTPLogger makes it easy to inspect HTTP requests happening inside your iOS app without needed the debugger attached.
- Integrates with AFNetworking
- Shows state and response time of a request
- Share request log via email, sms etc.
#import “REDAppDelegate.h”
#import <REDHTTPLogger/REDHTTPLogger.h>
@implementation REDAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
…
[[REDHTTPLogger sharedLogger] startLogging];
…
return YES;
}
@end
- (void)someAction:(id)sender
{
REDHTTPLogsViewController *logsViewController = [[REDHTTPLogsViewController alloc] init];
UINavigationController *logsNavigationController = [[UINavigationController alloc] initWithRootViewController:logsViewController];
[self.navigationController presentViewController:logsNavigationController animated:YES completion:nil];
}
To run the example project, clone the repo, and run pod install from the Example directory first.
REDHTTPLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "REDHTTPLogger"Red Davis, me@red.to
REDHTTPLogger is available under the MIT license. See the LICENSE file for more info.