logger mocking