A lightweight and extendable logger for writing console and file based logs in Swift.
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!
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