>>\xa3\xa3\xa3\xa6\xa6\xa6\xa4\xa4\xa4===\ +;;;\xa5\xa5\xa5777444555\xa7\ +\xa7\xa7\xa6\xa7\xa6\xa7\xa8\xa7\xa8\xa8\xa822233\ +3\xb0\xb0\xb0\xa9\xa9\xa9\xac\xac\xac\xab\xab\xab\xab\xae\xab\ +\xb7\xb7\xb7\xba\xba\xba888\xb8\xb8\xb8\xb9\xb9\xb9\xbc\ +\xbc\xbc)))***///\xbf\xbf\xbf\xbb\xbb\ +\xbb\xbe\xc1\xc1+++'''(((\xba\xbb\xbb\ +\xbd\xbe\xbe\xc1\xc1\xc1\xcc\xcc\xcc\xcd\xcd\xcd\xec\xec\xec\xed\ +\xed\xed\xef\xef\xef111\xbb\xbc\xbc\xbd\xbd\xbd\xca\xca\ +\xca\xcb\xca\xcb\xce\xce\xce\xd2\xd2\xd2\xde\xde\xde\xe2\xe2\xe2\ +\xe9\xe9\xe9\xeb\xeb\xeb,,,\xb6\xb6\xb6\xd4\xd4\xd4\xc9\ +\xc9\xc9\xcf\xcf\xcf\xd3\xd3\xd3\xdc\xdc\xdc\xdf\xdf\xdf\xe6\xe6\ +\xe6\xea\xea\xea\xfe\xfe\xfe000\xbb\xbd\xbd\xbe\xbe\xbe\ +\xd0\xd0\xd0\xe7\xe7\xe7\xee\xee\xee---\xda\xda\xda\xdd\ +\xdd\xdd\xe8\xe8\xe8\xf4\xf4\xf4\xcb\xcb\xcb\xe1\xe1\xe1\xe4\xe4\ +\xe4\xe0\xe0\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x08\xff\x009\x09\x1cH\xb0\xe0\x80\x01\x05\x13*\x5cH\ +\xf0 \xc3\x87\x04\x13$0\x88\x90\xa0\x08\x11\x10\x09z\ +\x90H\xb1\xe0\xc5 \x19\x07J\x9c8\xd0\xe1\xc0\x8b\x18\ +C\x0a\xe4\xc0\xb1dE\x81\x1fU\x8al\xc9\xc9$'\ +\x94\x199$\x1c)\xd0$\xce\x82 \x09r\x18\xaas\ +&I\x9f\x17\x09\x06Y\x1aT \x12\x0eO\x8b\x0a\xa4\ +y\xb2)'\xa6Z\xac\xae|\xfat\xa0\xd4\x93\x03\xb1\ +j-8\xb4+D\xa6K3F=\x1b$\xab\xcc\xb7\ +p\xe3\x16\xfc\xf1\x03\x89\xdd\xbauUj\xd9\xcb\x97/\ +\x12\xba\x80\x01\xeb\xed\xdbW\xae\xe1\xc3\x10\xd5(\x86\xd8\ +\xa6\xcd\xde\x90\x8a\x173n\xdc\xe6\xa1\xe2A\x92\x17J\ +\x1aH\xb9q\xc2\xc8\x999\xc9\x91\x93P\xd2f\x81\x9d\ +=\x0f\x04Mp4iN\x95*\x09\xacd\x9a`\xe7\ +\x82j\x12\xba\x9e-\x9b\x93\xe9\xd3\xb63\xee\xe6=\x90\ +6p\x95\xc3\x89\x0b\xfc}\x5c\xb8\x9c\xde\xca\x97\xd7F\ +>\xba`l\xeb\xd3CV'x\x9d`v\xc3\xdd\x11\ +'\x04\x0c\x9f1 \x00;\ \x00\x00\x01\x8a\ \x89\ PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\ @@ -3675,6 +4439,11 @@ \x00s\ \x00h\x00o\x00t\x00g\x00u\x00n\x00_\x00a\x00u\x00t\x00h\x00e\x00n\x00t\x00i\x00c\ \x00a\x00t\x00i\x00o\x00n\ +\x00\x12\ +\x0d\xb9\x836\ +\x00s\ +\x00p\x00i\x00n\x00n\x00i\x00n\x00g\x00_\x00w\x00h\x00e\x00e\x00l\x00.\x00g\x00i\ +\x00f\ \x00\x0e\ \x04\xac<\xa7\ \x00d\ @@ -3697,22 +4466,24 @@ " qt_resource_struct = b"\ -\x00\x00\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00\x01\ +\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x00\x00\x00\ -\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x07\ +\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x08\ \x00\x00\x00\x00\x00\x00\x00\x00\ -\x00\x00\x00.\x00\x02\x00\x00\x00\x01\x00\x00\x00\x06\ +\x00\x00\x00.\x00\x02\x00\x00\x00\x01\x00\x00\x00\x07\ \x00\x00\x00\x00\x00\x00\x00\x00\ -\x00\x00\x00L\x00\x02\x00\x00\x00\x02\x00\x00\x00\x04\ +\x00\x00\x00L\x00\x02\x00\x00\x00\x02\x00\x00\x00\x05\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00~\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ -\x00\x00\x01\x8f05\xd1\xf4\ -\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x01\x00\x00\x01\x8e\ -\x00\x00\x01\x8f05\xd1\xf8\ -\x00\x00\x00\xe0\x00\x00\x00\x00\x00\x01\x00\x00\xb99\ -\x00\x00\x01\x8f05\xd1\xf3\ -\x00\x00\x01\x18\x00\x00\x00\x00\x00\x01\x00\x00\xdb\x22\ -\x00\x00\x01\x8f05\xd1\xf5\ +\x00\x00\x01\x97\x8f$\xb0j\ +\x00\x00\x00\xa8\x00\x00\x00\x00\x00\x01\x00\x00/\x9d\ +\x00\x00\x01\x97\x8f$\xb0N\ +\x00\x00\x00\xca\x00\x00\x00\x00\x00\x01\x00\x001+\ +\x00\x00\x01\x96\xcb\xb7\xc7v\ +\x00\x00\x01\x0a\x00\x00\x00\x00\x00\x01\x00\x00\xe8\xd6\ +\x00\x00\x01\x90,\xa0\x05b\ +\x00\x00\x01B\x00\x00\x00\x00\x00\x01\x00\x01\x0a\xbf\ +\x00\x00\x01\x90,\xa0\x05b\ " def qInitResources(): diff --git a/python/tank/log.py b/python/tank/log.py index a3c6486367..d8ce0630e9 100644 --- a/python/tank/log.py +++ b/python/tank/log.py @@ -425,6 +425,14 @@ def __new__(cls, *args, **kwargs): return cls.__instance + @classmethod + def reset_logger(cls): + if not cls.__instance: + return + + del cls.__instance + cls.__instance = None + @staticmethod def get_logger(log_name): """ @@ -677,7 +685,7 @@ def initialize_custom_handler(self, handler=None): handler = logging.StreamHandler() # example: [DEBUG tank.log] message message - formatter = logging.Formatter("[%(levelname)s %(name)s] %(message)s") + formatter = logging.Formatter("%(asctime)s [%(levelname)s] %(message)s") handler.setFormatter(formatter)