Previously I mentioned a Swift library inspired by Underscore.js, and a Swift library for working with the Twitter API.
Here’s a debug logging framework for Swift projects with a number of nice features called XCGLogger from Dave Wood.
Some of the features of XCGLogger include:
– Much more detailed log messages including line numbers, function names, timestamps
– Different log levels (severe, error, debug, info, verbose)
– Saving of the log to a file
This example from the Cerebral Gardens blog shows the detail added with XCLogger going from default logging output like this:
to this:
You can find XCGLogger on Github here.
You can also read more about XCGLogger on the Cerebral Gardens blog.
A great logging
- NSLog Replacement Providing More Descriptive And Flexible Logging Statements
- Enhanced Logging Tool That Can Add File Names/Line Numbers To Log Statements And More
- Open Source Functional Programming Toolbelt For Swift Inspired By The Underscore.js Library
- An Extensive Open Source iOS Library For Working With The Twitter API Written In Swift
- Top iOS Development Resources For Week Ended October 6th, 2013
Original article: An Open Source Swift Library For Easily Creating Much More Useful Logging Statements
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




