Skip to content

Instantly share code, notes, and snippets.

@jancassio
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save jancassio/e798b821d0d41198620b to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
Author

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

@jancassio

Copy link
Copy Markdown
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