Skip to content

Instantly share code, notes, and snippets.

@cmvandrevala
Last active March 11, 2017 22:21
Show Gist options
  • Save cmvandrevala/2856247ead69b337268bda107eb4e19e to your computer and use it in GitHub Desktop.
Save cmvandrevala/2856247ead69b337268bda107eb4e19e to your computer and use it in GitHub Desktop.
Logging with simple print statements
class FakeServer {
func run() -> Void {
someImportantAction()
print("The server has completed some important action.")
anotherImportantAction()
print("The server has completed another important action.")
}
private func someImportantAction() -> Void {
print("This is some important action!")
}
private func anotherImportantAction() -> Void {
print("This is another important action!")
}
}
var server = FakeServer()
server.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment