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 __init__(self, level, match=None, record=False, print_msg=True):
      self._new_level = level
      self._new_match = match
      self._print_msg = print_msg
      self._record = record
      if match is not None and not isinstance(match, str):
          raise TypeError("match must be None or str")
  
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 1 to create a new use_log_level object from inherited base classes: object with example: obj = use_log_level(level, match, record, print_msg)