TLLogging
TLLogging is logging framework for iOS.
Installation
From CocoaPods
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'
Register log engine
Add these line to didFinishLaunchingWithOptions
function in your AppDelegate to register log engine. (see sample Xcode project)
TLLogging.addLogEngine(TLConsoleLogEngine())
TLLogging.addLogEngine(TLCrashlyticsLogEngine())
Usage
TLLogging.log("Application start with options %@", launchOptions ?? [:])
Debug check
Debug check is a useful function to trap your debugger when the variable value is unexpected
DCHECK(<#conditional#>)
License
TLLogging
is distributed under the terms and conditions of the MIT license.