Skip to content

Instantly share code, notes, and snippets.

@fredriccliver
Last active March 10, 2021 05:40
Show Gist options
  • Save fredriccliver/4450cf52671828d38aef41ad9cee0dad to your computer and use it in GitHub Desktop.
Save fredriccliver/4450cf52671828d38aef41ad9cee0dad to your computer and use it in GitHub Desktop.
func logg(_ object: Any, filepath:String = #file, functionname:String = #function, linenumber:Int = #line){
#if DEBUG
let filename = (filepath as NSString).lastPathComponent
print("🔨", filename,">", functionname,">", linenumber)
print(object)
// 🔨 ViewController.swift > myFunction(param:) > 36
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment