code: def enable_logging(self):
          
          handler = logging.FileHandler(self.log_fname)
          handler.setLevel(logging.INFO)
          run_id = self.id
  
          class WBFilter(logging.Filter):
              def filter(self, record):
                  record.run_id = run_id
                  return True
  
          formatter = logging.Formatter(
              '%(asctime)s %(levelname)-7s %(threadName)-10s:%(process)d [%(run_id)s:%(filename)s:%(funcName)s():%(lineno)s] %(message)s')
          handler.setFormatter(formatter)
          handler.addFilter(WBFilter())
  
          root = logging.getLogger()
          root.addHandler(handler)
docs: Enable logging to the global debug log.  This adds a run_id to the log,
          in case of muliple processes on the same machine.
  
          Currently no way to disable logging after it's enabled.