logging for the view engine

initial ideas for the view engine. #1563
You could accept a `ViewEngineResult` here instead. I'd be fine adding a few additional parameters here (`partial` for instance) to that type.