Swiftpack.co - piresbruno/LogKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by piresbruno.
piresbruno/LogKit v1.0.12
Simple Swift logging framework
⭐️ 2
🕓 1 year ago
.package(url: "https://github.com/piresbruno/LogKit.git", from: "v1.0.12")

LogKit is just another Swift logging framework.
It was made be to simple to use, read and maintain.
It works with Xcode 10.2 and Swift 5
Compatible with iOS 7.1+ and with Carthage (iOS 8.0+)

iOS 7.1 support

Given iOS 7 limitations with frameworks, to use LogKit in your iOS 7.1 project, just drag & drop the LogKit source files into your project.

Configuration

On AppDelegate setup the log level, on the didFinishLaunchingWithOptions function

// change the log level to the most convenient one for you
LogKit.setup(level:.Verbose)

You can choose any of the items in this enum, including Disabled, to configure your setup.

enum LogLevel: Int, Comparable {
    case Disabled   = 0
    case Error      = 1
    case Warning    = 2
    case Info       = 3
    case Debug      = 4
    case Verbose    = 5
}

Then, anywere in your code, just call

LogKit.log(level:.Info, message: "User signup success")
Disclaimer

This framework was inspired in the work of other logging frameworks, but not a copy of any of them.

Build Carthage compatible Swift version platforms

GitHub

link
Stars: 2
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.0.9
3 years ago

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