[Reviewer: Andy] Rework the fake logger used in UTs