Original question:
What are the alternative logging modules to NSLog for an iOS application? Please explain the pros and cons that you’ve experienced first hand.
Additional request 1:
I did try to use the TestFlight TFLog which also helps with uploading the logs to their server but it seems to be limited when you need logging when app is running in the background. A logging system that helps with rolling/compressing the log files and server uploads would greatly help.
Additional request 2:
Another issue of NSLog that some have written about is that Apple does not like it when you submit the app for production.
Thanks.
There’s always the
printffamily of functions, those are generally faster thanNSLog, but do not have support for the%@format specifier for objects.Lately I’ve been using the excellent Lumberjack framework for logging, which is asynchronous and will not have a performance impact on your code. It also has tons of customization features for log output formatting.