def __init__(self, terminal_reporter, capture_manager):
logging.StreamHandler.__init__(self, stream=terminal_reporter)<EOL>self.capture_manager = capture_manager<EOL>self.reset()<EOL>self.set_when(None)<EOL>self._test_outcome_written = False<EOL>
:param _pytest.terminal.TerminalReporter terminal_reporter:
:param _pytest.capture.CaptureManager capture_manager: