logging for the view engine

initial ideas for the view engine. #1563