@@ -0,0 +1,880 @@
+#!/usr/bin/python%0A%0Aimport logging%0Alogging.basicConfig(format='%25(levelname)-7s %7C %25(asctime)-23s %7C %25(name)-8s %7C %25(message)s', level=logging.WARNING)%0Alogging.getLogger(%22main%22).setLevel(logging.DEBUG)%0A%0A%0Acolor_name = True%0Acolor_msg = True%0Aoriginal_emit = logging.StreamHandler.emit%0Adef emit_wrap(*args, **kwargs):%0A        #import ipdb; ipdb.set_trace()%0A        record = args%5B1%5D%0A        color = hash(record.name) %25 8 + 30%0A%0A        if color_name:%0A                try:%0A                        record.name = (%22%5Cx1b%5B%25dm%22 %25 color) + record.name + %22%5Cx1b%5B0m%22%0A                except Exception:%0A                        pass%0A%0A        if color_msg:%0A                try:%0A                        record.msg = (%22%5Cx1b%5B%25dm%22 %25 color) + record.msg + %22%5Cx1b%5B0m%22%0A                except Exception:%0A                        pass%0A%0A        original_emit(*args, **kwargs)%0A%0Alogging.StreamHandler.emit = emit_wrap%0A%0A

Add standard_logging.py, moved from angr-doc