Added logging to each entity in the Materializer
to make debugging easier when things go wrong.