Skip to content

Instantly share code, notes, and snippets.

@paoloboschini
Created May 11, 2015 06:10
Show Gist options
  • Save paoloboschini/57f2e6e233da4410df4f to your computer and use it in GitHub Desktop.
Save paoloboschini/57f2e6e233da4410df4f to your computer and use it in GitHub Desktop.
func puts<T>(logMessage: T, file: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) {
println("\(file.lastPathComponent):\(function):\(line) \(logMessage)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment