#6622 Logger refactoring: added unit test