log the index