Redirect logging unit tests, related cleanup.