logging for the view engine

initial ideas for the view engine. #1563
Isn't the result of 2b in 3a and 3b?