def format(self, record):
        msg = logging.StreamHandler.format(self, record)

        if self.should_color():
            for level, color in self.COLORS:
                if record.levelno >= level:
                    msg = color(msg)
                    break

        return msg
dataset/ETHPy150Open pypa/pip/pip/utils/logging.py/ColorizedStreamHandler.format/original