Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 2.2 KB

README.md

File metadata and controls

87 lines (66 loc) · 2.2 KB

Logo

TLog

Swift 5.0 Version License Platform Email

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 12+
  • Swift 5

Installation

Cocoapods

TLog is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TLog'

Swift Package

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"),

Usage

import TLog
  • For Debug Logging:
TLog.debug("Debug !!!")

Debug

  • For Error Logging:
TLog.error("Error !!!")

Error

  • For Info Logging:
TLog.info("Info !!!")

Info

  • For Server Logging:
TLog.server("Server !!!")

Server

  • For Verbose Logging:
TLog.verbose("Verbose !!!")

Verbose

  • For Warning Logging:
TLog.warning("Warning !!!")

Warning

  • Enable/Disable TLog:
TLog.isLoggingEnabled = true/false

Author

fanta1ty, thinhnguyen12389@gmail.com

License

TLog is available under the MIT license. See the LICENSE file for more info.