class_docstr: Redirect stdout to logging.
  
  https://johnpaton.net/posts/redirect-logging/
code: def __init__(self, name="root", level="INFO"):
      self.logger = logging.getLogger(name)
      self.source = self.logger.name
      self.level = getattr(logging, level)
      self._redirector = contextlib.redirect_stdout(self)
  
imports: import logging
  import contextlib
label_desc: Use image node_id 1 to create a new OutputLogger object  with example: obj = OutputLogger(name, level)