TLLogging is logging framework for iOS.
CocoaPods is a dependency manager for Objective-C and Swift, which automates and simplifies the process of using 3rd-party libraries like TLLogging in your projects. First, add the following line to your Podfile:
pod 'TLLogging'Add these line to didFinishLaunchingWithOptions function in your AppDelegate to register log engine.
(see sample Xcode project)
TLLogging.addLogEngine(TLConsoleLogEngine())
TLLogging.addLogEngine(TLCrashlyticsLogEngine())TLLogging.log("Application start with options \(launchOptions ?? [:])")Debug check is a useful function to trap your debugger when the variable value is unexpected
DCHECK(<#conditional#>)TLLogging is distributed under the terms and conditions of the MIT license.