code: def basicConfig(**kwargs):
      
      logging.basicConfig(**kwargs)
      logging._acquireLock()
      try:
          stream = logging.root.handlers[0]
          stream.setFormatter(
              ColoredFormatter(
                  fmt=kwargs.get('format', BASIC_FORMAT),
                  datefmt=kwargs.get('datefmt', None)))
      finally:
          logging._releaseLock()
docs: Call ``logging.basicConfig`` and override the formatter it creates.