Chore change how logger is used