logging for the view engine

#1563
I get that this is for testing, but how bad would it be to just mock the service provider in tests? I don't totally hate seeing code like this, but I think it's probably easy to avoid in this case.