logging for the view engine

#1563
everything here needs an access modifier