Register Logger for unit-tests.