

def format(self, record):
    record.color = self.LEVEL_COLORS[record.levelno]
    return logging.StreamHandler.format(self, record)

dataset/ETHPy150Open openstack/oslo.log/oslo_log/handlers.py ColorHandler.format/original