Swiftpack.co -  Package - Madimo/SwiftLogger
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Madimo/SwiftLogger
A simple logger for Swift
.package(url: "https://github.com/Madimo/SwiftLogger.git", from: "1.0.0")

SwiftLogger

A simple logger system for Swift.

Usage

import Logging

let logger = Logger()
logger.add(handler: ConsoleLogHandler())
logger.info("Log anything you want.")

Using Log Levels

logger.trace("This is a log message.")
logger.info("This is a log message.")
logger.debug("This is a log message.")
logger.warning("This is a log message.")
logger.error("This is a log message.")
logger.fatal("This is a log message.")

GitHub

link
Stars: 4
Last commit: 5 weeks ago

Release Notes

1.0.0
5 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco