Last active
June 5, 2017 22:56
-
-
Save Izakc/ef9645f27922c335ab622979a642c4f3 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* 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