I used AFNetworkActivityLogger to print the network log, but recently updated AFNetworking to 3.0, and AFNetworkActivityLogger does not support 3.0. So, how could I print a magazine like before when I use AFNetworking 3.0?
If you use cocoapods, add this line to yours Podfileand runpod install
cocoapods
Podfile
pod install
pod 'AFNetworkActivityLogger', git: 'https://github.com/AFNetworking/AFNetworkActivityLogger.git', branch: '3_0_0'
This will check the code of the 3_0_0 AFNetworkActivityLogger branch .
3_0_0
I suggest you read the migration guide because some of the methods in 2.x have been moved to other places.
Link: AFNetworking / AFNetworkActivityLogger # 34
AFNetworkingLogger AFNetworking 3.x
AFNetworkingLogger
AFNetworking 3.x
- https://github.com/AFNetworking/AFNetworkActivityLogger/releases/tag/3.0.0
, ,
pod 'AFNetworkActivityLogger', '3.0.0'