Latest 1.0.0
Homepage https://github.com/summer20140803/TDFAPILogger
License LICENSE
Platforms ios 9.0
Dependencies AFNetworking
Authors

TDFAPILogger

Features


  • [x] 将API日志分为请求、响应、异常三部分来输出
  • [x] 优化了打印格式,选用C的printf而非NSLog,避免打印其他无关的信息
  • [x] 响应日志中对默认输出的JSON信息进行了pretty print处理,转换成标准的JSON格式,易于阅读
  • [x] 每个API的日志中新增API描述,易于让使用者通过日志反查API的起飞位置
  • [x] 每个API的日志中新增API唯一标识,用于将离散的请求日志和响应/异常日志关联起来调试
  • [x] 更醒目的emoji隔离
  • [x] 对外暴露requestLogReporter和responseLogReporter,用于外部高度定制

Requirements


  • iOS 9.0 or later

Communication


Installation


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

pod 'TDFAPILogger'

Usage


默认情况下,只需在项目工程podfile中引用TDFAPILogger即可。
如需进行定制甚至有高度定制需求,请参见demo中TDFAPILoggerTrigger.m中的示例。

其他接口属性含义也请参见TDFAPILogger.h的注解,如标注未详尽或者想进一步了解,请及时联系我
有发现任何Bug或者有更好的建议,也请及时联系我,感谢!

Latest podspec

{
    "name": "TDFAPILogger",
    "version": "1.0.0",
    "summary": "APIu65e5u5fd7u8f93u51fau5de5u5177",
    "description": "provide developer convenience when compose some api request code..",
    "homepage": "https://github.com/summer20140803/TDFAPILogger",
    "social_media_url": "http://silentcat.top/2017/07/21/iOS-Pretty-Format-API%E6%97%A5%E5%BF%97%E6%89%93%E5%8D%B0/",
    "license": "LICENSE",
    "authors": {
        "u5f00u4e0du4e86u53e3u7684u732b": "[email protected]"
    },
    "source": {
        "git": "https://github.com/summer20140803/TDFAPILogger.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "TDFAPILoggerExample/TDFAPILoggerExample/Classes/**/*.{h,m}",
    "dependencies": {
        "AFNetworking": []
    }
}

Pin It on Pinterest

Share This