Swiftpack.co - enhorn/OneLogger as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by enhorn.
enhorn/OneLogger 1.1
Simple logger for Swift that can be extended with custom loggers
⭐️ 0
🕓 3 days ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/enhorn/OneLogger.git", from: "1.1")


Simple swift logger that can be extended with custom loggers, that for example send the logging to a web service.

Uses four log levels: info, debug, warning and error.

Basic print and file loggers are available by default.

Used in OneNetwork.

Comes with DocC tutorials.

Example usage:

import OneLogger

struct MyView: View {

    private let logger: OneLogger = OnePrintLogger(level: .debug)

    var body: some View {
        Button("Print statements") {
            logger.info("Info log message") // Not printed due to the logger being at `.debug` level.
            logger.debug("Debug log message")



Stars: 0
Last commit: 20 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.1 DocC Tutorials
3 days ago

OneLogger now comes with some DocC tutorials. 🎉

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