Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AFNetworking 3.0 view log

I used to use AFNetworkActivityLogger to print the network log, but I update AFNetworking to 3.0 recently, and AFNetworkActivityLogger not support 3.0. So how could I print log like before when I am using AFNetworking 3.0?

like image 368
al03 Avatar asked Dec 05 '22 01:12

al03


1 Answers

If you're using cocoapods add this line to your Podfile and run pod install

pod 'AFNetworkActivityLogger', git: 'https://github.com/AFNetworking/AFNetworkActivityLogger.git', branch: '3_0_0'

This will checkout the code from branch 3_0_0 of AFNetworkActivityLogger.

I'd suggest you read through the migration guide because some of the methods in 2.x has been moved to other places.

Reference: AFNetworking/AFNetworkActivityLogger#34

like image 142
Cheng-Yu Hsu Avatar answered Dec 17 '22 00:12

Cheng-Yu Hsu