A lightweight logging SDK for iOS.
- iOS 9.0+
- Xcode 12+
Add the following to your Package.swift dependencies:
.package(url: "https://github.com/kokteyldev/KOKTEYL-LOG-SDK.git", from: "1.1.1")Then add KokteylLog to your target dependencies:
.product(name: "KokteylLog", package: "KokteylLog")Or in Xcode: File → Add Package Dependencies and enter the repository URL.
Add the following to your Podfile:
pod 'KokteylLog'Then run:
pod installKKLogSetLoglevel(KKLogLevelError);Available log levels:
| Level | Description |
|---|---|
KKLogLevelSilent |
No logs |
KKLogLevelError |
Errors only |
KKLogLevelWarning |
Errors and warnings |
KKLogLevelInfo |
Errors, warnings, and info |
KKLogLevelAll |
Everything |
KKLogSetLogPrefix(@"<MySDK> ");KKLogError(@"Something went wrong: %@", errorMessage);
KKLogWarning(@"Unexpected value: %@", value);
KKLogInfo(@"Initialized successfully");
KKLogMessage(@"Custom message");KKLogLevel currentLevel = KKLogGetLogLevel();Copyright 2016 KOKTEYL Bilgi Teknolojisi Hizmetleri A.S. All rights reserved.
- Website: kokteyl.com
- Email: [email protected]
- Documentation: admost.github.io/amrios