Refactoring logger