logging for the view engine

#1563
@pranavkm is there anything else here that's relevant to log?