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+)
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.
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")
This framework was inspired in the work of other logging frameworks, but not a copy of any of them.
link |
Stars: 2 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics