All Projects → jparise → Afhttpclientlogger

jparise / Afhttpclientlogger

Licence: mit
Configurable HTTP request logger for AFNetworking

Projects that are alternatives of or similar to Afhttpclientlogger

Opensource
♨️ 分享GitHub优秀开源项目和主流开发使用的网站、解决问题方案收集以及学习网站或资料,涵盖了iOS, macOS X, Blockchain, Flutter, Weex, H5, Games, C++, Script等多方面的内容,其中iOS大致包涵以下内容:音视频;IM和直播;逆向开发;图像相关(OpenGL, Metal, GPUImage);内购(IAP), ApplePay和第三方支付;安全攻防和应用加固, 数据安全和算法;常用第三方库;导航栏和状态栏;侧边菜单;数据持久;蓝牙, 手势指纹面容ID解锁, 图片浏览器, 扫码, 下拉和上拉刷新, 指示器, Toast, Menu, Sensor, Privacy, WebView和进度条, 动画, 选择器, 搜索, 分享, 图片验证码, 设备相关信息, 广告, 高仿项目及Demo等。
Stars: ✭ 123 (+207.5%)
Mutual labels:  afnetworking
AJNetworking
AFNetworking 3.0 版本的封装,结合MJExtension框架处理JSON序列化问题
Stars: ✭ 35 (-12.5%)
Mutual labels:  afnetworking
Hlnetworking
基于AFNetworking的高阶网络请求管理器
Stars: ✭ 276 (+590%)
Mutual labels:  afnetworking
Pgnetworkhelper
PINCache做为AFNetworking缓存层,将AFNetworking请求的数据缓存起来,支持取消当前网络请求,以及取消所有的网络请求,除了常用的Get,Post方法,也将上传图片以及下载文件进行了封装,同样支持同步请求,使用方法极其简单。
Stars: ✭ 131 (+227.5%)
Mutual labels:  afnetworking
Sjnetwork
SJNetwork is a high level network request tool based on AFNetworking and inspired on YTKNetwork.
Stars: ✭ 231 (+477.5%)
Mutual labels:  afnetworking
SSJNetWork
对AFNetWorking 二次封装 实现自动取消网络请求,网络请求缓冲,网络请求日志详细打印(代码还有不成熟的地方,如使用请下载到本地使用,如果问题,好及时修改)
Stars: ✭ 31 (-22.5%)
Mutual labels:  afnetworking
Lcnetwork
基于AFNetworking的网络库封装
Stars: ✭ 107 (+167.5%)
Mutual labels:  afnetworking
Mhdevelopexample objective c
🔥🔥🔥 iOS开发技术要点汇总,核心功能配备文档。表情键盘布局、大文件分片上传、基于MVC的基类设计、MVVM+RAC实践、微信朋友圈实现方案等。
Stars: ✭ 937 (+2242.5%)
Mutual labels:  afnetworking
WormholyForObjectiveC
Network debugging made easy,This network debugging tool is developed based on the swift version of Wormholy.
Stars: ✭ 21 (-47.5%)
Mutual labels:  afnetworking
KJNetworkPlugin
🎡A lightweight but powerful Network library. Network Plugin, Support batch and chain operation. 插件版网络架构
Stars: ✭ 43 (+7.5%)
Mutual labels:  afnetworking
Afnetworking Synchronous
Synchronous requests for AFNetworking 1.x, 2.x, and 3.x
Stars: ✭ 157 (+292.5%)
Mutual labels:  afnetworking
Afnetworking Retrypolicy
Nice category that adds the ability to set the retry interval, retry count and progressiveness.
Stars: ✭ 197 (+392.5%)
Mutual labels:  afnetworking
Dotzu-Objective-c
Dotzu Objective-c example project
Stars: ✭ 30 (-25%)
Mutual labels:  afnetworking
Ppnetworkhelper
AFNetworking 3.x 与YYCache封装
Stars: ✭ 1,586 (+3865%)
Mutual labels:  afnetworking
Netfox
A lightweight, one line setup, iOS / OSX network debugging library! 🦊
Stars: ✭ 3,188 (+7870%)
Mutual labels:  afnetworking
Wwnetworkhelper
AFN层级更高的网络请求API
Stars: ✭ 111 (+177.5%)
Mutual labels:  afnetworking
GoogleMapsHelper
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.
Stars: ✭ 21 (-47.5%)
Mutual labels:  afnetworking
Xmnetworking
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking.
Stars: ✭ 980 (+2350%)
Mutual labels:  afnetworking
Webhere
HTML scraping for Objective-C.
Stars: ✭ 16 (-60%)
Mutual labels:  afnetworking
HKHttpManager
轻量级的中大型项目AFNetworking高级封装
Stars: ✭ 20 (-50%)
Mutual labels:  afnetworking

AFHTTPClientLogger

AFHTTPClientLogger is a request logging extension for AFNetworking. It provides configurable HTTP request logging features on a per AFHTTPRequestOperationManager instance basis.

It is conceptually similar to AFHTTPRequestOperationLogger, which works globally across all AFHTTPRequestOperationManager instances.

AFHTTPClientLogger supports logging via CocoaLumberjack and will use its logging methods over NSLog if it's available.

Usage

The logger is accessed via the logger property of an AFHTTPRequestOperationManager object instance (simply named manager in the examples below). It must be explicitly enabled:

manager.logger.enabled = YES;

You can configure the log level to control the output's verbosity:

manager.logger.level = AFHTTPClientLogLevelDebug;

You can also customize the output by supplying your own format blocks:

[manager.logger setRequestStartFormatBlock:^NSString *(AFHTTPRequestOperation *operation, AFHTTPClientLogLevel level) {
    if (level > AFHTTPClientLogLevelInfo) {
        return nil;
    }

    return [NSString stringWithFormat:@"%@ %@", [operation.request HTTPMethod], [[operation.request URL] absoluteString]];
}];

License

AFHTTPClientLogger is available under the MIT license. See the included LICENSE file for details.

Contact

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].