Skip to content

Some helper functions in Swift to help you in the debugging process.

License

Notifications You must be signed in to change notification settings

BlTWISE/Swift-Useful-Debug-Logger-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Some helper functions in Swift to help you in the debugging process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages