Renames logToFile to file