Make logger an accessor that can be set