Can provide custom logger, in this case to reduce output during tests.