Made the logger an injected dependency