Disable logging during unit tests.