

def format(self, record):
    levelname = record.levelname
    if (self.use_color and (levelname in COLORS)):
        levelname_color = (((COLOR_SEQ % (30 + COLORS[levelname])) + levelname) + RESET_SEQ)
        record.levelname = levelname_color
    return logging.Formatter.format(self, record)

dataset/ETHPy150Open thasso/pyjip/jip/logger.py ColoredFormatter.format/original