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: Keep the log records in a list in addition to the log text.
docstr_tok: ["Keep","the","log","records","in","a","list","in","addition","to","the","log","text","."]
code: def emit(self, record):
      """Keep the log records in a list in addition to the log text."""
      self.records.append(record)
      logging.StreamHandler.emit(self, record)
  
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 2 for calling the LogCaptureHandler obj's underlying member method code with example usage: obj.emit(record) without return types