Swiftpack.co - aethe/hearth as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by aethe.
aethe/hearth 1.0.0
Lightweight logger for Swift
⭐️ 0
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/aethe/hearth.git", from: "1.0.0")

🔥 Hearth

A lightweight and extendable logger for writing console and file based logs in Swift.

Usage

Basics

Create a logger.

let logger = Logger()

Attach the logger to the console or a file (or both).

logger.attach(to: Console())
logger.attach(to: File()!)

Write messages.

logger.write("Hello, World!")

See the result.

Hello, World!

Installation

To integrate Hearth into your Xcode project using Swift Package Manager, go to File > Swift Packages > Add Package Dependency... and add it using this URL:

https://github.com/aethe/hearth

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

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