class_docstr: Context manager that replaces the param logger and captures
  log messages in a StringIO stream.
class_docstr_tok: ["Context","manager","that","replaces","the","param","logger","and","captures","log","messages","in","a","StringIO","stream","."]
code: def __exit__(self, *args):
      param.parameterized.logger = self._param_logger
      self._handler.close()
      self.stream.seek(0)
  
imports: import logging
  from io import StringIO
  import param
label_desc: Use image node_id 2 for calling the ParamLogStream obj's underlying member method code with example usage: obj.__exit__() without return types