Skip to content

Instantly share code, notes, and snippets.

@jancassio
Last active August 29, 2015 14:22
Show Gist options
  • Save jancassio/e798b821d0d41198620b to your computer and use it in GitHub Desktop.
Save jancassio/e798b821d0d41198620b to your computer and use it in GitHub Desktop.
Stupid simple function to log messages formatted with time, class, function and line number on Xcode console like a boss!
@jancassio
Copy link
Author

Update message type to AnyObject. This allows to print messages in console using this approach:
console(myObject)

@jancassio
Copy link
Author

Updated console message to have same signature of println function. Moved line number to right of function name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment