logging for the view engine

#1563
wait why doesn't the caching work?