adding to and formatting the duration log file