Log the proper string to the file.