'Cleanup after a startLogging() call that mutates the hell out of some
global state.'

def _startLoggingCleanup(self):

    self.addCleanup(log.theLogPublisher._stopLogging)
    self.addCleanup(setattr, sys, 'stdout', sys.stdout)
    self.addCleanup(setattr, sys, 'stderr', sys.stderr)
