Logger

0.1.0

Really lightweight logger for your CLI app
shibapm/Logger

What's New

First Release

2018-11-27T18:51:22Z

Logger

Really lightweight logger for your CLI app

Installing

Use SPM to install logger

let package = Package(
    name: "danger-swift",
    ...
    dependencies: [
      .package(url: "https://github.com/f-meloni/Logger", .branch("master")),
    ],
    ...
)

Use Logger

Logger offers you different functions dipending on the type of log you want to use.

Some examples:

let logger = Logger()

// prints:
// Message 1 Message 2
logger.debug("Message 1", "Message 2")

// prints:
// Message 1 
// Message 2
logger.logInfo("Message 1", "Message 2", separator: "\n")

// prints: 
// WARNING: WarningMessage!
logger.logWarning("WarningMessage", terminator: "!")

// prints:
// ERROR: ErrorMessage
logger.logError("ErrorMessage")

Description

  • Swift Tools 4.2.0
View More Packages from this Author

Dependencies

Last updated: Sat Oct 19 2024 03:18:36 GMT-0900 (Hawaii-Aleutian Daylight Time)