Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.13 KB

File metadata and controls

26 lines (21 loc) · 1.13 KB

Swift-Useful-Debug-Logger-Functions

In logger.swift, there are a list of log functions that are neatly organized in various formats to help you debug more effectively. Some functions leverage the use of some special literals that print details about the caller context such as the file name, the function, and line number. Columns are ignored since they aren't necessary but they can always be added. Note that when the file is passed to any function the inputted file is parsed and stripped of all directories so it only prints the file name.

Usage Examples

log() call

log("Your debug message goes here.")

image

boxlog() call with caller attributes

boxlog("Your debug message goes here.")

image

boxlog() call with no caller attributes

boxlog("Clear date 1 pressed")

image