How to enable SocketRocket logging

333 Views Asked by At

Given

Question

How to enable logging of SocketRocket?

PS

Using debugger I can see that SRFastLog(@"Connected"); method was called. But nothing is printed in the console

1

There are 1 best solutions below

0
Jayesh Thanki On

You can enable log using uncomment SR_DEBUG_LOG_ENABLED preprocessor macro.

See line #15 in SRLog.h file.

NOTE : You can not change dependency source file directly. You have to use either add sub module in your project or you have to fork that particular repo.

Ref : Editing locked files from a CocoaPods framework