Skip to content

aethe/hearth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 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

About

Lightweight logger for Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages