Skip to content

fanta1ty/TLog

Repository files navigation

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, [email protected]

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published