Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import Foundation
  2. class CommonUtils{
  3. func printLog<T>(_ message: T,
  4. file: String = #file,
  5. method: String = #function,
  6. line: Int = #line)
  7. {
  8. #if DEBUG
  9. print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
  10. #endif
  11. }
  12. }
Add Comment
Please, Sign In to add comment