Last active
March 11, 2017 22:21
-
-
Save cmvandrevala/2856247ead69b337268bda107eb4e19e to your computer and use it in GitHub Desktop.
Logging with simple print statements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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