Putting in TransformerLogger logic inside there for 2 lines previous and post in Example 8