logging for the view engine

#1563
@SonjaKhan the exception is thrown from `ViewResult` \ `PartialViewResult`.