Swiftpack.co - aethe/hearth as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
aethe/hearth
Lightweight logger for Swift
.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 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Related Packages

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