Last active
August 29, 2015 14:05
-
-
Save ileacristian/db24e5d04a3113f44157 to your computer and use it in GitHub Desktop.
exemplu logger
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
func myLog(message: String, function: String = __FUNCTION__, file: String = __FILE__, line: Int = __LINE__) { | |
println("Message: \(message)\ \n(From file: \(file), Function: \(function), Line: \(line))") | |
} | |
// Ex. apel | |
myLog("Salut") | |
// Exemplu de output | |
// Message: Salut | |
// From file: /Users/cilea/workspace/AutolayoutTests/AutolayoutTests/SecondViewController.swift, Function: growText, Line: 37 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment