Swiftpack.co - Package - f-meloni/Logger

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", from: "0.1.0"),
    ],
    ...
)

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

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Releases

0.1.0 - Nov 27, 2018