update the log