code: def add_queue_handler(queue):
      
      handler = QueueLogHandler(queue)
      handler.setFormatter(QueueFormatter())
      handler.setLevel(DEBUG)
      GLOBAL_LOGGER.addHandler(handler)
docs: Add a queue log handler to the global logger.