  
  
  def set_root_logger(loglevel=logging.INFO, queue=LOG_QUEUE):
      """ Setup the root logger.
          Loaded in main process and into any spawned processes
          Automatically added in multithreading.py"""
 
</s> remove             logger.verbose("Resizing image from %sx%s to %s.",
                           width, height, "x".join(str(i) for i in dims))
 </s> add             logger.trace("Resizing image from %sx%s to %s.",
                         width, height, "x".join(str(i) for i in dims)) </s> remove # Add a flag to logging.LogRecord to not strip formatting from particular records
old_factory = logging.getLogRecordFactory()


 </s> add old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name </s> remove     log_console = logging.StreamHandler(sys.stdout)
 </s> add     log_console = TqdmHandler(sys.stdout)
class TqdmHandler(logging.StreamHandler):
    """ Use TQDM Write for outputting to console """
    def emit(self, record):
        msg = self.format(record)
        tqdm.write(msg)


  
  
class TqdmHandler(logging.StreamHandler):
    """ Use TQDM Write for outputting to console """
    def emit(self, record):
        msg = self.format(record)
        tqdm.write(msg)


  def set_root_logger(loglevel=logging.INFO, queue=LOG_QUEUE):
      """ Setup the root logger.
          Loaded in main process and into any spawned processes
          Automatically added in multithreading.py"""
keep add keep keep keep keep
 Use tqdm.write for StreamLogger. Reduce extract resize loglevel. 
lib/logger.py