Write distance from start to log file.