class_docstr: A logging handler that stores log records and the log text.
class_docstr_tok: ["A","logging","handler","that","stores","log","records","and","the","log","text","."]
docstr: Creates a new log handler.
docstr_tok: ["Creates","a","new","log","handler","."]
code: def __init__(self):
      """Creates a new log handler."""
      logging.StreamHandler.__init__(self, py.io.TextIO())
      self.records = []
  
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 LogCaptureHandler object from inherited base classes: logging with example: obj = LogCaptureHandler()