• This repository has been archived on 17/Jan/2023
  • Stars
    star
    215
  • Rank 178,005 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 12 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AFNetworking Extension for HTTP Request Logging

AFHTTPRequestOperationLogger

AFHTTPRequestOperationLogger is an extension for AFNetworking 1.x that logs HTTP requests as they are sent and received.

If you are looking for an AFNetworking 2-compatible logger, check out AFNetworkActivityLogger

AFHTTPRequestOperationLogger listens for AFNetworkingOperationDidStartNotification and AFNetworkingOperationDidFinishNotification notifications, which are posted by AFNetworking as request operations are started and finish. For further customization of logging output, users are encouraged to implement desired functionality by listening for these notifications.

Usage

Add the following code to AppDelegate.m -application:didFinishLaunchingWithOptions::

[[AFHTTPRequestOperationLogger sharedLogger] startLogging];

Now all AFHTTPRequestOperation will have their request and response logged to the console, a la:

GET http://example.com/foo/bar.json
200 http://example.com/foo/bar.json

If the default logging level is too verboseโ€”say, if you only want to know when requests fail, then changing it is as simple as:

[[AFHTTPRequestOperationLogger sharedLogger] setLevel:AFLoggerLevelError];

Contact

Mattt Thompson

License

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

More Repositories

1

AFNetworking

A delightful networking framework for iOS, macOS, watchOS, and tvOS.
Objective-C
33,333
star
2

AFIncrementalStore

1,687
star
3

AFOAuth2Manager

AFNetworking Extension for OAuth 2 Authentication
Objective-C
1,184
star
4

AFNetworkActivityLogger

AFNetworking 3.0 Extension for Network Request Logging
Objective-C
560
star
5

AFAmazonS3Manager

AFNetworking Client for the Amazon S3 API
Objective-C
363
star
6

fastlane

A fastlane setup to deploy Objective-C and Swift frameworks.
Ruby
252
star
7

Xcode-Project-Templates

Objective-C
222
star
8

AFOAuth1Client

AFNetworking Extension for OAuth 1.0a Authentication
Objective-C
209
star
9

AFJSONRPCClient

Client for interacting with JSON-RPC APIs
Objective-C
189
star
10

AFgzipRequestSerializer

gzip Request Serializer for AFNetworking
Objective-C
167
star
11

AFRocketClient

152
star
12

AFOnoResponseSerializer

An XML and HTML response serializer for AFNetworking 2.0, using Ono
Objective-C
113
star
13

AFNetworking-ASIHTTPRequest

75
star
14

AFCoreImageResponseSerializer

AFNetworking 2.0 Serialization Module to apple Core Image Filters to Images
Objective-C
68
star
15

AFMsgPackSerialization

AFNetworking 2.0 Serialization Module for MsgPack
Objective-C
65
star
16

AFWebDAVManager

AFNetworking manager for WebDAV
Objective-C
64
star
17

WebKit-AFNetworking

AFNetworking Extensions for WebKit
Objective-C
48
star
18

AFContentRequestOperations

Legacy content-specific request operation subclasses re-implemented with AFNetworking 2.0 APIs
Objective-C
25
star
19

AFCollectionJSONRequestOperation

AFNetworking Extension for Collection+JSON Hypermedia
20
star
20

afnetworking.com

Source code for AFNetworking.com
CSS
8
star