Use Cocoalumberjack when it's available (via Cocoapods)
Opened this issue · 3 comments
fatuhoku commented
lukeredpath commented
Is it possible to make use of CocoaLumberjack without making it a project dependency?
orta commented
You could use #if __has_include(<FacebookSDK/FacebookSDK.h>)
to see if it's available, then fake an object like it in source to call the methods. ( Probably, not tested this. )
lukeredpath commented
Hmm, how about this as a proposed solution:
libPusher defines a logging macro and uses it internally, e.g. :
#define LIB_PUSHER_LOG(fmt, ...) NSLog(fmt, ##__VA_ARGS__)
If people want to override this, they can redefine it:
#undef LIB_PUSHER_LOG
#define LIB_PUSHER_LOG(fmt, ...) DDLogInfo(fmt, ##__VA_ARGS__)