class_docstr: Custom StreamHandler used by the live logging feature: it will write a newline before the first log message
  in each test.
  
  During live logging we must also explicitly disable stdout/stderr capturing otherwise it will get captured
  and won't appear in the terminal.
class_docstr_tok: ["Custom","StreamHandler","used","by","the","live","logging","feature",":","it","will","write","a","newline","before","the","first","log","message","in","each","test",".","During","live","logging","we","must","also","explicitly","disable","stdout\/stderr","capturing","otherwise","it","will","get","captured","and","wo","n't","appear","in","the","terminal","."]
docstr: :param _pytest.terminal.TerminalReporter terminal_reporter:
  :param _pytest.capture.CaptureManager capture_manager:
docstr_tok: [":","param","_pytest.terminal.TerminalReporter","terminal_reporter",":",":","param","_pytest.capture.CaptureManager","capture_manager",":"]
code: def __init__(self, terminal_reporter, capture_manager):
      """
      :param _pytest.terminal.TerminalReporter terminal_reporter:
      :param _pytest.capture.CaptureManager capture_manager:
      """
      logging.StreamHandler.__init__(self, stream=terminal_reporter)
      self.capture_manager = capture_manager
      self.reset()
      self.set_when(None)
      self._test_outcome_written = False
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import re
  from contextlib import contextmanager
  import py
  import six
  import pytest
  from _pytest.compat import dummy_context_manager
  from _pytest.config import create_terminal_writer
  from _pytest.pathlib import Path
label_desc: Use image node_id 1 to create a new _LiveLoggingStreamHandler object from inherited base classes: logging with example: obj = _LiveLoggingStreamHandler(terminal_reporter, capture_manager)