class_docstr: Stream handler allowing matching and recording
  
  This handler has two useful optional additions:
  
      1. Recording emitted messages.
      2. Performing regexp substring matching.
  
  Prepending of traceback information is done in _VispyFormatter.
class_docstr_tok: ["Stream","handler","allowing","matching","and","recording","This","handler","has","two","useful","optional","additions",":","1",".","Recording","emitted","messages",".","2",".","Performing","regexp","substring","matching",".","Prepending","of","traceback","information","is","done","in","_VispyFormatter","."]
code: def _vispy_set_emit_record(self, record):
      self._vispy_emit_record = record
      match = self._vispy_match
      # Triage here to avoid a bunch of if's later (more efficient)
      if match is not None or self._vispy_emit_record:
          self.emit = self._vispy_emit_match_andor_record
      else:
          self.emit = partial(logging.StreamHandler.emit, self)
  
imports: import base64
  import logging
  import sys
  import inspect
  import re
  import traceback
  import json
  from functools import partial
  import numpy
label_desc: Use image node_id 4 for calling the _VispyStreamHandler obj's underlying member method code with example usage: obj._vispy_set_emit_record(record) without return types