def add_handler(handler: logging.Handler) -> None:
    """adds a handler to the HuggingFace Transformers's root logger."""

    _configure_library_root_logger()

    assert handler is not None
    _get_library_root_logger().addHandler(handler)
adds a handler to the HuggingFace Transformers's root logger.
dpkd/transformers/src/transformers/utils/logging.py