             // Merge the logs from the normal log file and the overflow log file (if necessary)
             if Logger.fileManager.isReadableFileAtPath(overflowLogFile) {
                 let fileContents = try NSString(contentsOfFile: overflowLogFile, encoding: NSUTF8StringEncoding) as String
-                writeToFile(logFile, string: fileContents, loggerName: Logger.internalLogger.name)
+                writeToFile(logFile, logMessage: fileContents, loggerName: Logger.internalLogger.name)
             }
             
             // Since the buffer log is empty, we move the log file to the buffer file in preparation of sending the logs. When new logs are recorded, a new log file gets created to replace it.

    }
}

// TODO: When logging about file operations, record only the file name, not the whole path

// TODO: Refactor this entire file so that it is better organized and more readable. Consider using extensions.



    
    // Custom dispatch_sync that can incorporate throwable statements
    internal static func dispatch_sync_throwable(queue: dispatch_queue_t, block: () throws -> ()) throws {
        
        var error: ErrorType?
        try dispatch_sync(queue) {
