class_docstr: Redirect stdout to logging.
  
  https://johnpaton.net/posts/redirect-logging/
docstr: Log messages.
docstr_tok: ["Log","messages","."]
code: def write(self, msg):
      """Log messages."""
      if msg and not msg.isspace():
          self.logger.log(self.level, msg)
  
imports: import logging
  import contextlib
label_desc: Use image node_id 2 for calling the OutputLogger obj's underlying member method code with example usage: obj.write(msg) without return types