freshOS / ws-deprecated

⚠️ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing)
MIT License
353 stars 32 forks source link

Log levels #2

Closed maxkonovalov closed 8 years ago

maxkonovalov commented 8 years ago

Hey, great framework, I really enjoy using it :) Would be nice though to add logging levels or at least an ability to temporarily disable the console logs for ws. Also the same response is printed twice if Promise with custom model object is returned, which seems unnecessary.

s4cha commented 8 years ago

Hey @maxkonovalov, I'm super happy you enjoy it :) Thanks for the lovely feedback, I am going to look into this and will report back to you when it's solved. Cheers

s4cha commented 8 years ago

@maxkonovalov logging levels are now supported in version 1.1.0. 🎉 ws.logLevels = .CallsAndResponses Values are None(default), Calls and CallsAndResponses Have a great day! PS: The double printed response shouldn't happen anymore

maxkonovalov commented 8 years ago

@s4cha great! 👏 many thanks)))