Skip to content

Instantly share code, notes, and snippets.

@Nub
Created June 27, 2014 21:37
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 Nub/16d6af96c74bf10418a4 to your computer and use it in GitHub Desktop.
Save Nub/16d6af96c74bf10418a4 to your computer and use it in GitHub Desktop.
import Foundation
class Logger {
enum Level: Int, Printable {
case Noise
case Normal
case Important
case Critical
var description: String {
get {
switch(self){
case .Noise:
return "Noise"
case .Normal:
return "Normal"
case .Important:
return "Important"
case .Critical:
return "Critical"
}
}
}
}
var levels = Dictionary<Int, NSString>()
func log(message: String) {
}
func save() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment