log the position