fix logger implementation and test