logger refactorings