log the view