Refactoring injection Logger