Given
- iOS project written in Swift
- Uses Facebook's SocketRocket in order to connect websocket: https://github.com/facebook/SocketRocket
- SocketRocket was installed using CocoaPods
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
You can enable log using uncomment
SR_DEBUG_LOG_ENABLEDpreprocessor 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