File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ typedef enum {
6565#pragma mark -
6666
6767/* *
68- `AFHTTPClient ` category that provides access to the logger.
68+ `AFHTTPRequestOperationManager ` category that provides access to the logger.
6969*/
7070@interface AFHTTPRequestOperationManager (Logging)
7171
Original file line number Diff line number Diff line change 11# AFHTTPClientLogger
22
33AFHTTPClientLogger is a request logging extension for [ AFNetworking] [ ] . It
4- provides configurable HTTP request logging features on a per ` AFHTTPClient `
4+ provides configurable HTTP request logging features on a per ` AFHTTPRequestOperationManager `
55instance basis.
66
77It is conceptually similar to [ AFHTTPRequestOperationLogger] [ ] , which works
8- globally across all ` AFHTTPClient ` instances.
8+ globally across all ` AFHTTPRequestOperationManager ` instances.
99
1010## Usage
1111
12- The logger is accessed via the ` logger ` property of an ` AFHTTPClient ` object
13- instance (simply named ` client ` in the examples below). It must be explicitly
12+ The logger is accessed via the ` logger ` property of an ` AFHTTPRequestOperationManager ` object
13+ instance (simply named ` manager ` in the examples below). It must be explicitly
1414enabled:
1515
1616``` objective-c
17- client .logger.enabled = YES ;
17+ manager .logger.enabled = YES ;
1818```
1919
2020You can configure the log level to control the output's verbosity:
2121
2222``` objective-c
23- client .logger.level = AFHTTPClientLogLevelDebug;
23+ manager .logger.level = AFHTTPClientLogLevelDebug;
2424```
2525
2626You can also customize the output by supplying your own format blocks:
2727
2828``` objective-c
29- [client .logger setRequestStartFormatBlock: ^NSString * (AFHTTPRequestOperation * operation, AFHTTPClientLogLevel level) {
29+ [manager .logger setRequestStartFormatBlock: ^NSString * (AFHTTPRequestOperation * operation, AFHTTPClientLogLevel level) {
3030 if (level > AFHTTPClientLogLevelInfo) {
3131 return nil;
3232 }
You can’t perform that action at this time.
0 commit comments