                 }
             }
             catch let error {
-                NSLog("Cannot determine the size of file:\(logFileName) due to error: \(error). In case the file size is greater than the specified max log storage size, logs will not be written to file.")
+                print("Cannot determine the size of file:\(logFileName) due to error: \(error). In case the file size is greater than the specified max log storage size, logs will not be written to file.")
             }
         }
         

                    try self.moveOldLogsToOverflowFile(logFile, overflowFile: logOverflowFile)
                }
                catch let error {
                    NSLog("Log file \(logFile) is full but the old logs could not be removed. Try sending the logs. Error: \(error)")
                    return
                }
            }

    internal static func dispatch_sync_throwable(queue: dispatch_queue_t, block: () throws -> ()) throws {
        
        var error: ErrorType?
        dispatch_sync(queue) {
            do {
                try block()
            }
