added time formatting to log file