update log file