Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- class CommonUtils{
- 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
- }
- }
Add Comment
Please, Sign In to add comment