Created
April 29, 2021 04:21
-
-
Save fhefh2015/f742e8b6a010b8bf240dbeaaed2c5e3a to your computer and use it in GitHub Desktop.
print
This file contains hidden or 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 printLog<T>(message: T, | |
file: String = #file, | |
method: String = #function, | |
line: Int = #line) | |
{ | |
#if DEBUG | |
print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)") | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment