update the log position.