Set the logger in the unit tests.