update logfile