logging for the view engine

initial ideas for the view engine. #1563
We might want to log the result of 2b (inside the `foreach` loop). `ViewLocationExpanders` transform the searched locations and it is useful to know what the transformations look like at each step.