REDHTTPLogger 0.2.0

REDHTTPLogger 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Red Davis.



 
Depends on:
AFNetworking~> 2.3
RequestUtils~> 1.1
 

REDHTTPLogger makes it easy to inspect HTTP requests happening inside your iOS app without needed the debugger attached.

Features

  • Integrates with AFNetworking
  • Shows state and response time of a request
  • Share request log via email, sms etc.

How To Use

To Start The Logger

#import “REDAppDelegate.h”

#import <REDHTTPLogger/REDHTTPLogger.h>


@implementation REDAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
        …

    [[REDHTTPLogger sharedLogger] startLogging];

        …

    return YES;
}

@end

To Present Logger

- (void)someAction:(id)sender
{
    REDHTTPLogsViewController *logsViewController = [[REDHTTPLogsViewController alloc] init];
    UINavigationController *logsNavigationController = [[UINavigationController alloc] initWithRootViewController:logsViewController];
    [self.navigationController presentViewController:logsNavigationController animated:YES completion:nil];
}

Example

View video

Usage

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

Installation

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

pod "REDHTTPLogger"

Author

Red Davis, [email protected]

License

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