         if (Logger.fileManager.fileExistsAtPath(logFileName)) {
             
             do {
-                let fileAttributes = try Logger.fileManager.attributesOfItemAtPath(logFileName)
-                if let currentLogFileSize = fileAttributes[NSFileSystemSize] as? UInt64 {
+               // let fileAttributes = try Logger.fileManager.attributesOfItemAtPath(logFileName)
+                let attr : NSDictionary? = try NSFileManager.defaultManager().attributesOfItemAtPath(logFileName)
+                if let currentLogFileSize = attr?.fileSize() {
                     return currentLogFileSize > Logger.maxLogStoreSize / 2 // Divide by 2 since the total log storage gets shared between the log file and the overflow file
                 }
             }

        }
    }
    
    internal static func getMockLoggerForName(loggerName: String, request: RequestMock) -> Logger{
        
    }
    
    
    private init(name: String) {
        self.name = name

    
    internal func moveOldLogsToOverflowFile(logFile: String, overflowFile: String) throws {
        
        if Logger.fileManager.fileExistsAtPath(overflowFile) && Logger.fileManager.isDeletableFileAtPath(overflowFile) {
            try Logger.fileManager.removeItemAtPath(overflowFile)
        }
        try Logger.fileManager.moveItemAtPath(logFile, toPath: overflowFile)
