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:
You can find XCGLogger on Github here.
You can also read more about XCGLogger on the Cerebral Gardens blog.
A great library for easily creating more detailed logging statements.