Skip to content

Instantly share code, notes, and snippets.

@Izakc
Last active June 5, 2017 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Izakc/ef9645f27922c335ab622979a642c4f3 to your computer and use it in GitHub Desktop.
Save Izakc/ef9645f27922c335ab622979a642c4f3 to your computer and use it in GitHub Desktop.
/**
* Log
**/
class log {
var archivo: String
init(archivo: String){
self.archivo = archivo
}
static func debug(mensaje: String){
let salida = String(format: "%@ DEBUG %@ - %@", fecha, debugString(), mensaje)
print("")
}
private func debugString(file: String = #file, line: Int = #line, function: String = #function) -> String {
return "\(file).\(function)():\(line)"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment