@staticmethod
    def _emit_wrap(*args, **kwargs):
        record = args[1]
        color = hash(record.name) % 8 + 30
        try:
            record.name = ("\x1b[%dm" % color) + record.name + "\x1b[0m"
        except Exception:
            pass

        try:
            record.msg = ("\x1b[%dm" % color) + record.msg + "\x1b[0m"
        except Exception:
            pass
        _original_emit(*args, **kwargs)


# Set the default to INFO at import time
# Loggers.setall(logging.INFO)
dataset/ETHPy150Open angr/angr/angr/log.py/Loggers._emit_wrap/original