Created
June 27, 2014 21:37
-
-
Save Nub/16d6af96c74bf10418a4 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
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