def METHOD_NAME(self, record):
    s = super().METHOD_NAME(record)
    if record.levelno == CRITICAL:
        return "\x1b[31;1m%s\x1b[0m" % s  # bright red
    elif record.levelno == ERROR:
        return "\x1b[33;1m%s\x1b[0m" % s  # bright yellow
    elif record.levelno == WARNING:
        return "\x1b[33m%s\x1b[0m" % s    # yellow
    elif record.levelno == INFO:
        return "\x1b[37m%s\x1b[0m" % s    # white
    elif record.levelno == DEBUG:
        return "\x1b[36m%s\x1b[0m" % s    # cyan
    else:
        return s