Swiftpack.co -  Package - mr-elbe5/SwiftyLog
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
mr-elbe5/SwiftyLog
simple static logger for swift
.package(url: "https://github.com/mr-elbe5/SwiftyLog.git", from: "1.0.3")

SwiftyLog

A simple logger for Swift

It uses a log file and / or a log delegate, which can retreive log messages from a queue.

Use the following functions to initialize:

useLog(level: .myLevel)

useLogFile(url: myFileUrl)

useDelegate(myLogDelegate, useQueue = true)

In the LogDelegate implement updateLog() and call Log.getChunks()

In your code use:

Log.debug("my message")

Log.info("my message")

Log.warn("my message")

Log.error("my message")

Log.error(myError)

GitHub

link
Stars: 0
Last commit: 3 days ago

Related Packages

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