Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.67 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.67 KB

Katip

CI Status Version License Platform

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.

Example

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

Format text parameters

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 

Installation

Katip is available through CocoaPods. Installation is very simple just add the following line to your Podfile.

pod "Katip"

Author

Nahit Rüştü Heper

License

Katip is available under the MIT license. See the LICENSE file for more info.