logging for the view engine

#1563
Don't use statics. And I think we can avoid logging in the result itself, all the things the results does can be logged elsewhere (view engine, and view execution itself).