Skip to content

Instantly share code, notes, and snippets.

@Izakc Izakc/Log.swift
Last active Jun 5, 2017

Embed
What would you like to do?
/**
* 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
You can’t perform that action at this time.