       return
     }
     #if os(iOS)
-      let titleString = "\((filename as NSString).lastPathComponent) [line:\(line)]"
+      let titleString = "\(filename.lastPathComponent) [line:\(line)]"
       let messageString = "\(now()) \(function) --- \(message)"
       let alertView = UIAlertView(
         title: titleString,

    log(.Verbose, msg: msg, funcName: funcName, lineNum: lineNum, fileName: fileName)
  }
  
  /// Info
  public func info(msg: String, funcName: String = #function, lineNum: Int = #line, fileName: String = #file) {
    log(.Info, msg: msg, funcName: funcName, lineNum: lineNum, fileName: fileName)
  }
  
  /// Debug
  public func debug(msg: String, funcName: String = #function, lineNum: Int = #line, fileName: String = #file) {
    log(.Debug, msg: msg, funcName: funcName, lineNum: lineNum, fileName: fileName)
  }
  
  /// Warn

  // MARK: - Helper
  
  /// Get current date
  private func now() -> String {
    let date: NSDate = NSDate()
    let fmt: NSDateFormatter = NSDateFormatter()
    fmt.dateFormat = "yyyy-MM-dd HH:mm:ss"
