logging for the view engine

#1563
This is for testing purposes.