Skip to content

piresbruno/LogKit

Repository files navigation

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

About

Simple Swift logging framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published