logging for the view engine

#1563
Oh, very good point about the object mutating. This is fine as-is, then. Thanks!