class_docstr: Context manager that temporarily sets logging level
  
  Parameters
  ----------
  level : str
      See ``set_log_level`` for options.
  match : str | None
      The string to match.
  record : bool
      If True, the context manager will keep a record of the logging
      messages generated by vispy. Otherwise, an empty list will
      be returned.
  print_msg : bool
      If False, printing of (all) messages will be suppressed. This is
      mainly useful in testing. False only works in `record=True` mode, if
      not recording messages, consider setting `level` appropriately.
  
  Returns
  -------
  records : list
      As a context manager, an empty list or the list of logging messages
      will be returned (depending on the input ``record``).
class_docstr_tok: ["Context","manager","that","temporarily","sets","logging","level","Parameters","--","--","--","--","--","level",":","str","See","``","set_log_level","``","for","options",".","match",":","str","|","None","The","string","to","match",".","record",":","bool","If","True",",","the","context","manager","will","keep","a","record","of","the","logging","messages","generated","by","vispy",".","Otherwise",",","an","empty","list","will","be","returned",".","print_msg",":","bool","If","False",",","printing","of","(","all",")","messages","will","be","suppressed",".","This","is","mainly","useful","in","testing",".","False","only","works","in","`","record=True","`","mode",",","if","not","recording","messages",",","consider","setting","`","level","`","appropriately",".","Returns","--","--","--","-","records",":","list","As","a","context","manager",",","an","empty","list","or","the","list","of","logging","messages","will","be","returned","(","depending","on","the","input","``","record","``",")","."]
code: def __exit__(self, type, value, traceback):
      # reset log level
      set_log_level(self._old_level, self._old_match)
      # reset handler
      if self._record:
          _lh._vispy_set_emit_record(False)
      if not self._print_msg:
          _lh._vispy_print_msg = True
  
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 3 for calling the use_log_level obj's underlying member method code with example usage: obj.__exit__(type, value, traceback) without return types