Refactor out the separate logger