 
 class SOPLog{
   
+  static let debugLevel = "SopDebugLevel"
+  
   static var destination: LogDestination? = StdoutDestination()
-  static var level = Level.none
+  static var level = getDebugLevel()
   
   static func debug(
     message: String,

    destination = StdoutDestination()
    level = .none
  }

  enum Level: Int {
    case debug = 0
    case info = 1
    case warning = 2
    case error = 3
    case none = 4

    var name: String {
      switch self {
      case .debug:

    if level.rawValue < self.level.rawValue {
      return
    }
    
    let now = NSDate()
    let dateFormatter = DateFormatter()
    dateFormatter.locale = Locale(identifier: "ja_JP")
