     severity: Int) {
             // We only want the source name of the #file macro, so lets only keep
             // the last component of the path
-            let pathComponents = file.componentsSeparatedByString("\\/")
+            let pathComponents = file.componentsSeparatedByString("/")
             if let fileName = pathComponents.last {
                 let sev: Severity
                 if let temp = Severity(rawValue: severity) {

        #if DEBUG
            let color: String
            switch severity {
            case .Fatal: color = red
            case .Error: color = red
            case .Warning: color = yellow
            case .Information: color = green

}

public func OSULoggerLog(severity: OSULogger.Severity, string: String, function: String = #function, filePath: String = #file, line: Int = #line) {
    let pathComponents = filePath.componentsSeparatedByString("/")
    if let fileName = pathComponents.last {
        OSULogger.sharedLogger().log(string, severity: severity, function: function, file: fileName, line: line)
    }
