def do_set_thesplog(self, arg):
        'Updates the Thespian thesplog internal call functionality.  The first argument is the Actor number, the second argument is the logging threshold (e.g. "debug", "warning", etc.), the third argument is true or false to specify the forwarding of thesplog calls to python logging, and the fourth argument is true or false to specify whether to append thesplog output to /tmp/Thespian.log'
        try:
            from thespian.system.messages.logcontrol import SetLogging
        except __HOLE__:
            print ('** Sorry, log control not available on this system')
            return
        actorAddrAndSettings = self.parseActorNum(arg)
        if actorAddrAndSettings:
            anum, addr, settings = actorAddrAndSettings
            print('settings is <%s>'%(str(settings)))
            threshold,useLogging,useFile = tuple(settings.split(' '))
            l1 = {'debug': logging.DEBUG,
                  'info' : logging.INFO,
                  'warning': logging.WARNING,
                  'error' : logging.ERROR,
                  'critical' : logging.CRITICAL}.get(threshold.lower(),
                                                     logging.INFO)
            l2 = useLogging.lower() not in ['0', 'no', 'false']
            l3 = useFile.lower() not in ['0', 'no', 'false']
            r = (self.system or ActorSystem()).tell(addr,
                                                    SetLogging(l1, l2, l3))
            print('Actor #%d (%s) logging settings updated.'%(anum, addr))
dataset/ETHPy150Open godaddy/Thespian/thespian/shell.py/ThespianShell.do_set_thesplog