Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Output HTTP requests made with AFNetworking in the debug console
Objective-C Ruby
tag: 0.5.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE.md
MCHTTPRequestLogger.h
MCHTTPRequestLogger.m
MCHTTPRequestLogger.podspec
README.md

README.md

MCHTTPRequestLogger

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.

Example Usage

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];

Important Notes

  • This code has been known to work on iOS 5.x+.
  • This code uses Automatic Reference Counting, if your project does not use ARC, you must add the -fobjc-arc compiler flag to each implementation files in Target Settings > Build Phases > Compile Source.
  • This code also uses the literals syntax, so at least Xcode 4.5 is required.

License

MCHTTPRequestLogger is © 2012 Mirego, Inc. and may be freely distributed under the New BSD license. See the LICENSE file.

Something went wrong with that request. Please try again.