 
     private(set) var request: NSMutableURLRequest?
 
+    public static var log: (String -> Void)?
     public static var userAgent: String?
     public static var requestTimeout = 5.0
     public static var resourceTimeout = 10.0

            let result = self.parseResponse(data, response: response)
            complete(result: result)
        }
        task.resume()
    }


        return isReachable && !needsConnection
    }


    private func traceTask(task: NSURLSessionDataTask) {
        if let log = JSONRequest.log {
            log("Hello")
        }
    }

}
