To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 12+
- Swift 5
TLog
is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'TLog'
TLog
is designed for Swift 5. To depend on the logging API package, you need to declare your dependency in your Package.swift
.package(url: "https://github.com/fanta1ty/TLog.git", brand: "master"),
import TLog
- For Debug Logging:
TLog.debug("Debug !!!")
- For Error Logging:
TLog.error("Error !!!")
- For Info Logging:
TLog.info("Info !!!")
- For Server Logging:
TLog.server("Server !!!")
- For Verbose Logging:
TLog.verbose("Verbose !!!")
- For Warning Logging:
TLog.warning("Warning !!!")
- Enable/Disable
TLog
:
TLog.isLoggingEnabled = true/false
fanta1ty, thinhnguyen12389@gmail.com
TLog is available under the MIT license. See the LICENSE file for more info.