Katip is a tiny logging framework for iOS. Katip allows you to log details to the console, just like you would have with NSLog() or print(), but with additional information such as, the date, log level, thread name, dynamic type, function name, filename and line number.
To use Katip in the entire project, simply add it to the AppDelegate.swift
file.
To be able to run the example project, you must first clone the repo and run pod install
from the Example directory.
import Katip
let log = Katip.self
You can set the log format or enable/disable console outputs in the beginning of your AppDelegate:didFinishLaunchingWithOptions()
log.formatText = "$L➤$DHH:mm:ss {$T} $F.$f.[$l]<$t>:$O"
log.enabled = true
O output object
T thread name
t object dynamic type
F file name
f function name
l line number
D date with format
L log level
Katip is available through CocoaPods. Installation is very simple just add the following line to your Podfile.
pod "Katip"
Katip is available under the MIT license. See the LICENSE file for more info.